summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane2001-02-12 20:07:21 +0000
committerTom Lane2001-02-12 20:07:21 +0000
commitaa88e59ade282c41dd03a1ab386a0a408e4a43af (patch)
tree098c0784df02fbc9bba8fccd23809cd35cc8a451 /src/include
parentd8c4cb740c9a828fb7a0580e8ce987d2ada9524c (diff)
Rearrange order of operations in heap_create_with_catalog so that if
two transactions create the same table name concurrently, the one that fails will complain about unique index pg_class_relname_index, rather than about pg_type_typname_index which'll confuse most people. Free side benefit: pg_class.reltype is correctly linked to the pg_type entry now. It's been zero in all but the preloaded pg_class entries since who knows when.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/catalog/pg_type.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/catalog/pg_type.h b/src/include/catalog/pg_type.h
index 83af133d1bb..e429047542f 100644
--- a/src/include/catalog/pg_type.h
+++ b/src/include/catalog/pg_type.h
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_type.h,v 1.100 2001/01/24 19:43:22 momjian Exp $
+ * $Id: pg_type.h,v 1.101 2001/02/12 20:07:20 tgl Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
@@ -420,6 +420,7 @@ DESCR("numeric(precision, decimal), arbitrary precision number");
extern Oid TypeGet(char *typeName, bool *defined);
extern Oid TypeShellMake(char *typeName);
extern Oid TypeCreate(char *typeName,
+ Oid assignedTypeOid,
Oid relationOid,
int16 internalSize,
int16 externalSize,
@@ -431,7 +432,8 @@ extern Oid TypeCreate(char *typeName,
char *sendProcedure,
char *elementTypeName,
char *defaultTypeValue,
- bool passedByValue, char alignment,
+ bool passedByValue,
+ char alignment,
char storage);
extern void TypeRename(const char *oldTypeName, const char *newTypeName);
extern char *makeArrayTypeName(char *typeName);