Re: regression in CVS HEAD - Mailing list pgsql-hackers

From Tom Lane
Subject Re: regression in CVS HEAD
Date
Msg-id 25998.1018900593@sss.pgh.pa.us
Whole thread Raw
In response to regression in CVS HEAD  (Neil Conway <nconway@klamath.dyndns.org>)
List pgsql-hackers
Neil Conway <nconway@klamath.dyndns.org> writes:
> POSTGRES backend interactive interface 
> $Revision: 1.260 $ $Date: 2002/03/24 04:31:07 $

> backend> create table foo (c1 int);
> ERROR:  invalid relation "foo"; system catalog modifications are currently disallowed
> backend> create schema x;
> backend> create table x.bar (c1 int);
> backend>

> Is this the expected behavior?

It is at the moment but I'm planning to change it.  Currently, a
standalone backend defaults to pg_catalog being the target creation
namespace, which is needed by initdb; but I was planning to make initdb
explicitly set the search_path to pg_catalog, because it seems like a
bad idea for pg_catalog to ever be the default target.

In the meantime, try an explicitset search_path = 'public';
then "create table foo" would create public.foo which will be allowed.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Rod Taylor"
Date:
Subject: Re: Operators and schemas
Next
From: Bruce Momjian
Date:
Subject: Re: RFC: Generating useful names for foreign keys and checks