Re: Ensure all implicit constraints are named

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Rod Taylor <rbt(at)rbt(dot)ca>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Ensure all implicit constraints are named
Date: 2003-06-06 22:18:39
Message-ID: 200306062218.h56MIdr19923@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Your patch has been added to the PostgreSQL unapplied patches list at:

http://momjian.postgresql.org/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

---------------------------------------------------------------------------

Rod Taylor wrote:
-- Start of PGP signed section.
> If they're not, the below causes problems, as the foreign key is added
> after the CHECK. Cluster depends on the index name, so I thought it
> wise to ensure all names are available, rather than leaving off the
> CONSTRAINT "$n" portion for internally named constraints.
>
> CREATE TABLE jkey (col integer primary key);
> CREATE TABLE j (col integer REFERENCES jkey);
> ALTER TABLE j ADD CHECK(col > 5);
>
>
> This is a problem in 7.3 series as well as -Tip.
>
> --
> Rod Taylor <rbt(at)rbt(dot)ca>
>
> PGP Key: http://www.rbt.ca/rbtpub.asc

[ Attachment, skipping... ]
-- End of PGP section, PGP failed!

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-06-06 22:19:14 Re: pgstattuple for schemas
Previous Message Bruce Momjian 2003-06-06 19:44:58 Re: pg_dump with conbin