]> granicus.if.org Git - postgresql/commit
Rearrange order of operations in heap_create_with_catalog so that if
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Feb 2001 20:07:21 +0000 (20:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Feb 2001 20:07:21 +0000 (20:07 +0000)
commitaa88e59ade282c41dd03a1ab386a0a408e4a43af
tree098c0784df02fbc9bba8fccd23809cd35cc8a451
parentd8c4cb740c9a828fb7a0580e8ce987d2ada9524c
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/backend/catalog/heap.c
src/backend/catalog/pg_type.c
src/backend/commands/define.c
src/include/catalog/pg_type.h