Re: schemas and paths with the alter statement

From: Richard Huxton <dev(at)archonet(dot)com>
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:17:25
Message-ID: 421B8545.7070509@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Ragnar Hafstað 2005-02-22 19:26:07 Re: schemas and paths with the alter statement
Previous Message Tom Lane 2005-02-22 19:16:05 Re: schemas and paths with the alter statement