Re: Schema search_path and $user

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

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Postgres User 2009-07-06 19:24:47 Re: Schema search_path and $user
Previous Message Postgres User 2009-07-06 18:41:52 Schema search_path and $user