MCPcopy Create free account
hub / github.com/apache/cloudberry / GetAppendOnlyEntry

Function GetAppendOnlyEntry

src/backend/catalog/pg_appendonly.c:220–232  ·  view source on GitHub ↗

* Get the pg_appendonly entry for the relation. This should only be called on * tables with pg_appendonly entries, which currently are just non-partitioned * AO/CO tables. The pg_appendonly data is copied into the Form_pg_appendonly * pointer which should be valid. */

Source from the content-addressed store, hash-verified

218 * pointer which should be valid.
219 */
220void
221GetAppendOnlyEntry(Relation rel, Form_pg_appendonly aoEntry)
222{
223 Form_pg_appendonly aoForm;
224
225 /* the relation has to be a non-partitioned AO/CO table and the aoEntry is valid */
226 Assert(RelationStorageIsAO(rel));
227 Assert(aoEntry);
228
229 aoForm = rel->rd_appendonly;
230
231 memcpy(aoEntry, aoForm, APPENDONLY_TUPLE_SIZE);
232}
233
234/*
235 * Update the segrelid and/or blkdirrelid if the input new values

Callers 2

appendonly_fetch_initFunction · 0.85
AORelationVersion_GetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected