Re: Schema search_path and $user

From: Postgres User <postgres(dot)developer(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Schema search_path and $user
Date: 2009-07-06 19:24:47
Message-ID: b88c3460907061224x6f946b3amd8d5ddf725681882@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks for the link, I wasn't reading the right page(s) in the documentation.

On Mon, Jul 6, 2009 at 12:19 PM, Tom Lane<tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Postgres User <postgres(dot)developer(at)gmail(dot)com> writes:
>> In the docs, I see repeated references to $user in the postgresql.conf
>> schema search_path setting such as:
>
>> search_path = '"$user",public'
>
>> But I don't see any info on the meaning of '$user' here.
>
> I guess you didn't read the actual documentation of search_path:
> http://www.postgresql.org/docs/8.3/static/runtime-config-client.html#GUC-SEARCH-PATH
> It says
>
> The value for search_path has to be a comma-separated list of schema
> names. If one of the list items is the special value $user, then the
> schema having the name returned by SESSION_USER is substituted, if there
> is such a schema. (If not, $user is ignored.)
>
>                        regards, tom lane
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oscar Miguel Amezcua Estrella 2009-07-06 19:47:50 BUG #4903: Sugestion a db modele like mysql workbrench
Previous Message Tom Lane 2009-07-06 19:19:57 Re: Schema search_path and $user