Re: search_path and current_schema

From: Jayadevan M <maymala(dot)jayadevan(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: search_path and current_schema
Date: 2013-10-28 01:35:16
Message-ID: CAFS1N4g-7qYyYqpj3oJ5HEusK+_-WwY10mfSug19rHet-=KtTg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

OK. When I logged in as a user who had access to the schema, the output
from current_schemas and search_path were matching.
Thanks.

On Sun, Oct 27, 2013 at 9:55 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Jayadevan M <maymala(dot)jayadevan(at)gmail(dot)com> writes:
> > I thought current_schemas and search_path will return the same set of
> > schemas (except that current_schema will show pg_catalog also, if we use
> > true). Shouldn't mynewschema appear in the output of select
> > current_schemas(true)?
>
> Only if it actually exists (and you have usage privilege on it). See
> the description of the search_path variable: nonexistent entries are
> silently ignored.
>
> Possibly this behavior should be documented under current_schemas()
> as well as under the GUC variable.
>
> regards, tom lane
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message anatoly techtonik 2013-10-28 06:30:38 Re: PGAdmin and user privileges - what I do wrong?
Previous Message Adrian Klaver 2013-10-27 23:56:16 Re: Work table