Re: schemas and paths with the alter statement

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Theodore Petrosky <tedpet5(at)yahoo(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: schemas and paths with the alter statement
Date: 2005-02-22 19:16:05
Message-ID: 11540.1109099765@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Theodore Petrosky <tedpet5(at)yahoo(dot)com> writes:
> ALTER TABLE public.test ADD CONSTRAINT public.test_PK
> PRIMARY KEY (test);

Constraints don't have schema-qualified names. Try

ALTER TABLE public.test ADD CONSTRAINT test_PK PRIMARY KEY (test);

The error message was pointing to the correct place BTW.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2005-02-22 19:17:25 Re: schemas and paths with the alter statement
Previous Message Theodore Petrosky 2005-02-22 19:06:04 schemas and paths with the alter statement