X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0F9CC8B9B19 for ; Tue, 22 Feb 2005 19:16:16 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 76139-02 for ; Tue, 22 Feb 2005 19:16:06 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 173538B9CA2 for ; Tue, 22 Feb 2005 19:16:06 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j1MJG5Fn011541; Tue, 22 Feb 2005 14:16:06 -0500 (EST) To: Theodore Petrosky Cc: pgsql-sql@postgresql.org Subject: Re: schemas and paths with the alter statement In-reply-to: <20050222190604.90402.qmail@web41005.mail.yahoo.com> References: <20050222190604.90402.qmail@web41005.mail.yahoo.com> Comments: In-reply-to Theodore Petrosky message dated "Tue, 22 Feb 2005 11:06:04 -0800" Date: Tue, 22 Feb 2005 14:16:05 -0500 Message-ID: <11540.1109099765@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.11 tagged_above=0 required=5 tests=AWL, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200502/248 X-Sequence-Number: 20359 Theodore Petrosky 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