From: Tom Lane <tgl@sss.pgh.pa.us>
To: Theodore Petrosky <tedpet5@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: schemas and paths with the alter statement
Date: Tue, 22 Feb 2005 14:16:05 -0500
Message-ID: <11540.1109099765@sss.pgh.pa.us> (raw)
In-Reply-To: <20050222190604.90402.qmail@web41005.mail.yahoo.com>
References: <20050222190604.90402.qmail@web41005.mail.yahoo.com>
Theodore Petrosky <tedpet5@yahoo.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, tedpet5@yahoo.com
Subject: Re: schemas and paths with the alter statement
In-Reply-To: <11540.1109099765@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox