bug in schema export? - Mailing list pgsql-general

From Jonathan Vanasco
Subject bug in schema export?
Date
Msg-id 40B2D199-DA99-4BB1-8692-EF64FE4B9CA8@2xlp.com
Whole thread Raw
Responses Re: bug in schema export?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


pgsql-general by date:

Previous
From: Jonathan Vanasco
Date:
Subject: rename constraints ?
Next
From: Tom Lane
Date:
Subject: Re: bug in schema export?