pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
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 19:17:25 +0000
Message-ID: <421B8545.7070509@archonet.com> (raw)
In-Reply-To: <20050222190604.90402.qmail@web41005.mail.yahoo.com>
References: <20050222190604.90402.qmail@web41005.mail.yahoo.com>

Theodore Petrosky wrote:
> 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

Are you sure it's not the constraint that is causing the problem (he 
says, counting 46 characters in). I think a table constraint is by 
definition in the same schema as its table.

-- 
   Richard Huxton
   Archonet Ltd



view thread (5+ messages)  latest in thread

Message-ID: <421B8545.7070509@archonet.com>
Permalink:  ../421B8545.7070509@archonet.com/
Also on:    postgresql.org/message-id/421B8545.7070509@archonet.com

 · 

reply

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: dev@archonet.com, tedpet5@yahoo.com
  Subject: Re: schemas and paths with the alter statement
  In-Reply-To: <421B8545.7070509@archonet.com>

* 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