Re: Schema Problem - Mailing list pgsql-novice

From John DeSoi
Subject Re: Schema Problem
Date
Msg-id BD1511A4-EC2F-4051-84D1-4FD9C298721F@pgedit.com
Whole thread Raw
In response to Schema Problem  ("Ashish Karalkar" <ashish.karalkar@info-spectrum.com>)
List pgsql-novice
On Jul 2, 2007, at 4:44 AM, Ashish Karalkar wrote:

> But still the tables are created in the public schema and not in
> xyz schema
>
>
> Postgresql.conf entry:
> serach path =' "$user",public'
>
> tried with setting :
> search path = ' xyz,"$user",public'
> Same result
>
> OR
> search path = ' "$user",xyz,public'
> Same result
>
> OR
> search path = ' "$user",xyz'
> Error:no schema has been selected to create in
>


I'd suggest that your search path command is not quite correct. You
should work that out in psql before trying it in a script. For example:

test=# set search_path to some_schema, "$user", public;
SET

test=# show search_path;
          search_path
------------------------------
some_schema, "$user", public
(1 row)

So here any new tables should now be created in "some_schema".




John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


pgsql-novice by date:

Previous
From: "Ashish Karalkar"
Date:
Subject: Schema Problem
Next
From: Michael Glaesemann
Date:
Subject: Re: problem in plpgsql