aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/typecmds.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2009-12-19 00:47:57 +0000
committerBruce Momjian <bruce@momjian.us>2009-12-19 00:47:57 +0000
commit78a09145e0f8322e625bbc7d69fcb865ce4f3034 (patch)
tree8db6b5c44763c0b44b1520d10e15d42230360275 /src/backend/commands/typecmds.c
parent2e9468f2c850f2b712d23d110042cf14678c6791 (diff)
downloadpostgresql-78a09145e0f8322e625bbc7d69fcb865ce4f3034.tar.gz
postgresql-78a09145e0f8322e625bbc7d69fcb865ce4f3034.zip
binary migration: pg_migrator
Add comments about places where system oids have to be preserved for binary migration.
Diffstat (limited to 'src/backend/commands/typecmds.c')
-rw-r--r--src/backend/commands/typecmds.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/backend/commands/typecmds.c b/src/backend/commands/typecmds.c
index 54d8220cb37..a11825c8a91 100644
--- a/src/backend/commands/typecmds.c
+++ b/src/backend/commands/typecmds.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.139 2009/12/07 05:22:21 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.140 2009/12/19 00:47:57 momjian Exp $
*
* DESCRIPTION
* The "DefineFoo" routines take the parse tree and pick out the
@@ -531,6 +531,12 @@ DefineType(List *names, List *parameters)
* now have TypeCreate do all the real work.
*/
typoid =
+ /*
+ * The pg_type.oid is stored in user tables as array elements
+ * (base types) in ArrayType and in composite types in
+ * DatumTupleFields. This oid must be preserved by binary
+ * upgrades.
+ */
TypeCreate(InvalidOid, /* no predetermined type OID */
typeName, /* type name */
typeNamespace, /* namespace */