Re: Schema Problem

From: John DeSoi <desoi(at)pgedit(dot)com>
To: Ashish Karalkar <ashish(dot)karalkar(at)info-spectrum(dot)com>
Cc: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Schema Problem
Date: 2007-07-02 12:14:10
Message-ID: BD1511A4-EC2F-4051-84D1-4FD9C298721F@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Glaesemann 2007-07-02 13:41:59 Re: problem in plpgsql
Previous Message Ashish Karalkar 2007-07-02 08:44:59 Schema Problem