Hi all, While looking at the heap code, I've found that relrewrite, parameter used a trick to keep a link to the original relation rewritten, is not documented at the top of heap_create_with_catalog() contrary to all its other parameters.
A simple patch is attached to document that. Thanks, -- Michael
diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c index fbaed5359ad7..77b6f02ca95d 100644 --- a/src/backend/catalog/heap.c +++ b/src/backend/catalog/heap.c @@ -1100,6 +1100,7 @@ AddNewRelationType(const char *typeName, * if false, relacl is always set NULL * allow_system_table_mods: true to allow creation in system namespaces * is_internal: is this a system-generated catalog? + * relrewrite: link to original relation during a table rewrite. * * Output parameters: * typaddress: if not null, gets the object address of the new pg_type entry
signature.asc
Description: PGP signature