* 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. */
| 218 | * pointer which should be valid. |
| 219 | */ |
| 220 | void |
| 221 | GetAppendOnlyEntry(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 |
no outgoing calls
no test coverage detected