[Fwd: [Fwd: named constraints]] - Mailing list pgsql-bugs

From Merrill Oveson
Subject [Fwd: [Fwd: named constraints]]
Date
Msg-id 39CFB04B.FF2E063C@actiontarget.com
Whole thread Raw
Responses Re: [Fwd: [Fwd: named constraints]]  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-bugs

All:

I have the following table:

create table try (
        ordnum int4 primary key,
        type char(3),
        CONSTRAINT type_check CHECK(type in ('bid', 'ord', 'rma'))
);

The named constraint works find here.

However when I do:

> psql ati -c "alter table try drop constraint type_check"

I get:ERROR:  parser: parse error at or near ""

Am I missing something here?

What I'd really like to do is have constraints that are "outside"
the table definition, that way I could add and drop constraints
without having to dump the data out, rebuild the schema
and re-import the data back in.  Is this possible?



pgsql-bugs by date:

Previous
From: Ludovic LANGE
Date:
Subject: PostgreSQL crashes using distance operator whith records where 'point' data type set to null
Next
From: Tom Lane
Date:
Subject: Re: PostgreSQL crashes using distance operator whith records where 'point' data type set to null