Re: Schema Problem
| От | John DeSoi |
|---|---|
| Тема | Re: Schema Problem |
| Дата | |
| Msg-id | BD1511A4-EC2F-4051-84D1-4FD9C298721F@pgedit.com обсуждение исходный текст |
| Ответ на | Schema Problem ("Ashish Karalkar" <ashish.karalkar@info-spectrum.com>) |
| Список | 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 по дате отправления: