Re: Indexed constraint comments not working

From: Thom Brown <thom(at)linux(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Indexed constraint comments not working
Date: 2013-05-26 22:23:12
Message-ID: CAA-aLv586_38qsWhYUyBRfO3XfUXC=QQo+N5UNBymj+-ZmeFRQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

On 26 May 2013 18:20, Thom Brown <thom(at)linux(dot)com> wrote:
> Hi all,
>
> Comments on indexed constraints (primary keys, exclusion constraints
> etc.) are failing due to referencing the wrong alias of the relevant
> pg_description join in the join clause.
>
> Test case:
>
> CREATE TABLE test (id int);
>
> ALTER TABLE test
> ADD CONSTRAINT cnt_x_test
> EXCLUDE USING btree (id WITH =);
>
> COMMENT ON CONSTRAINT cnt_x_test ON
> COMMENT ON CONSTRAINT cnt_x_test
> ON test IS 'Hello';

Paste fail. Please ignore the first "COMMENT ON..." line.

--
Thom

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2013-05-26 22:34:34 pgAdmin III commit: Fix comments on constraints
Previous Message Thom Brown 2013-05-26 22:20:18 Indexed constraint comments not working