bug in schema export?

From: Jonathan Vanasco <postgres(at)2xlp(dot)com>
To: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: bug in schema export?
Date: 2007-04-17 18:33:17
Message-ID: 40B2D199-DA99-4BB1-8692-EF64FE4B9CA8@2xlp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

i believe i found a bug

psql> create table test_failure ( id integer primary key );
psql> alter table test_failure alter id rename to id_new ; # not
relevant, just illustrating the reason how i got to step 2
psql> alter table test_failure_pkey rename to test_failure_id_new_pkey;

$ pg_dump --schema-only -ttest_failure -Utest > test.sql

the pkey in the schema is added as 'test_failure_pkey' , not
'test_failure_id_new_pkey';

it happens whether or not you use 'alter table' or 'alter index' on
the pkey name

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-04-17 18:51:46 Re: bug in schema export?
Previous Message Jonathan Vanasco 2007-04-17 17:42:23 rename constraints ?