From: | Melvin Davidson <melvin6925(at)gmail(dot)com> |
---|---|
To: | Ramesh T <rameshparnanditech(at)gmail(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: postgres 9.3 |
Date: | 2015-09-21 18:52:20 |
Message-ID: | CANu8FixEAmbRD98A+N_F99Gf3ArRic7E8hvEOcqn0+SpEf8Puw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
You cannot directly "connect" one schema with another,
but you can set the default to have both in the search_path.
Uncomment the #search_path parameter in Postgresql.conf
and change it to
search_path = 'preview, role,public,"$user",public'
The make sure you do:
sudo su - postgres
pg_ctl reload [-D datadir]
On Sat, Sep 19, 2015 at 4:36 AM, Ramesh T <rameshparnanditech(at)gmail(dot)com>
wrote:
> I have one database and two schemas in that public,preview and role preview
> automatically i want to connect preview schema with preview role.
>
> set search_path to preview.
> show search_path;
> ..
> preview.
>
>
> when disconnect and connect database it's showing $user$:public schema not
> showing preview.
>
> what is the problem..?how to resolve the issue...?
>
>
> when session closed showing postgres user..even set preview.
>
--
*Melvin Davidson*
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.
From | Date | Subject | |
---|---|---|---|
Next Message | John R Pierce | 2015-09-21 19:02:19 | Re: postgres 9.3 |
Previous Message | Pavel Stehule | 2015-09-21 17:21:02 | Re: Memory for BYTEA returned by C function is not released until connection is dropped |