From aa88e59ade282c41dd03a1ab386a0a408e4a43af Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 12 Feb 2001 20:07:21 +0000 Subject: 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. --- src/include/catalog/pg_type.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/include') 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); -- cgit v1.2.3