From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | Ian Harding <ianh(at)co(dot)pierce(dot)wa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: ALTER TABLE ADD CONSTRAINT |
Date: | 2001-05-11 19:37:31 |
Message-ID: | Pine.BSF.4.21.0105111234360.98443-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, 7 May 2001, Ian Harding wrote:
> I am generating scripts from MSSQL Server and converting them to
> create objects in PostgreSQL. It is suprisingly easy. However, I
> think I may have hit a rock.
>
> It appears that PostgreSQL does not support listing constraints to be
> added as in the following syntax:
>
> alter table foo add
> constraint fk_foo_bar foreign key
> (
> fooid
> ) references bar (
> barid
> ),
> constraint fk_foo_baz foreign key
> (
> footooid
> ) references baz (
> bazid
> );
>
> Is this true? Is this something that is being considered for addition?
AFAICS, that's not supported by the grammar in the SQL spec, however
it may be a reasonable extension.
> Also, I see that alter table add constraint does not work for
> defaults. Is this something that is going to be added?
again AFAICS, add constraint has nothing to do with defaults,
it's for adding, unique/pkey, fkey and check constraints. Ours
currently doesn't handle unique/pkey. Probably will for 7.2.
From | Date | Subject | |
---|---|---|---|
Next Message | webb sprague | 2001-05-11 19:40:06 | WAL logs eating my diskspace!! |
Previous Message | Jeff Daugherty | 2001-05-11 19:29:12 | Re: Re: ALTER TABLE ADD CONSTRAINT |