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 F3DC48B9CA2 for ; Tue, 22 Feb 2005 19:06:15 +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 73514-03 for ; Tue, 22 Feb 2005 19:06:05 +0000 (GMT) Received: from web41005.mail.yahoo.com (web41005.mail.yahoo.com [66.218.93.4]) by svr1.postgresql.org (Postfix) with SMTP id 2B26B8B9D53 for ; Tue, 22 Feb 2005 19:06:05 +0000 (GMT) Received: (qmail 90404 invoked by uid 60001); 22 Feb 2005 19:06:04 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=VtgQX99iQ0cGoBvB/IB2o2ID8wieo5xezOQc8PnmezSRn/Y7hKUtoE1mtDKOa0OhysJJWlVAm6r3v2u6U+f5osnpOCE+eVsUbAkq4bt7Vaq6KUe5Gvl8q7qU4gdj/SG2JVo1bnsdU2a1fUtrTHh1ljCWNU+4HU9K/gvdOo4kd8U= ; Message-ID: <20050222190604.90402.qmail@web41005.mail.yahoo.com> Received: from [151.204.106.102] by web41005.mail.yahoo.com via HTTP; Tue, 22 Feb 2005 11:06:04 PST Date: Tue, 22 Feb 2005 11:06:04 -0800 (PST) From: Theodore Petrosky Subject: schemas and paths with the alter statement To: pgsql-sql@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.252 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200502/247 X-Sequence-Number: 20358 I have to first admit that I am very green at this. I thought that one could refer to a table in a fully qualified path... public.testtable I am fooling around with webobjects and EOModeler. at one point it creates the sql to create my table structure and it does something like: ALTER TABLE public.test ADD CONSTRAINT public.test_PK PRIMARY KEY (test); I assumed that it would work. Did I miss something in the docs that say you can not do this? Does "ALTER TABLE" not work with 'public.' before the table name? on 7.4.6 aswebtest=# ALTER TABLE public.test ADD CONSTRAINT public.test_PK PRIMARY KEY (test); ERROR: syntax error at or near "." at character 46 but it works if I remove the 'public.' from both places aswebtest=# ALTER TABLE test ADD CONSTRAINT test_PK PRIMARY KEY (test); NOTICE: ALTER TABLE / ADD PRIMARY KEY will create implicit index "test_pk" for table "test" ALTER TABLE Ted __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250