Comment on table forces recreation of constraints

From: Bartosz Dmytrak <bdmytrak(at)gmail(dot)com>
To: PgAdmin Support <pgadmin-support(at)postgresql(dot)org>
Subject: Comment on table forces recreation of constraints
Date: 2013-04-24 08:18:55
Message-ID: CAD8_UcYx5GZPHTneFkcN1UoGiMtvd_owQV_MzcipvR6JnGaoQw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi all,
here is strange thing I found:
When I try to create a comment on my table, pgAdmin script generated behind
the scene recreates constraints (primary key and foreign keys). It simply
add ALTER TABLE ... DROP CONSTRAINT ... and ALTER TABLE ... ADD CONSTRAINT
- this is not needed.

COMMENT ON TABLE ... is added at the end of the script too.

Another odd thing is refreshing object explorer on changes of object defs
(via GUI). All schema nodes are collapsed and edited object is not visible
any more eg. when you put a comment on column. This is very annoying when
db contains many objects.

Env.
pgAdmin 1.16.1 on Windows.

Regards,
Bartek

Browse pgadmin-support by date

  From Date Subject
Next Message Farley Carter 2013-04-24 13:31:07 Re: Date column types
Previous Message Guillaume Lelarge 2013-04-23 19:11:20 Re: Date column types