From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | postgresql(at)mackler(dot)email, pgsql-docs(at)lists(dot)postgresql(dot)org |
Subject: | Re: Unclear wording |
Date: | 2025-07-12 10:19:29 |
Message-ID: | dd69c01c44c475f0f651f09e1b1a3d742d49714e.camel@cybertec.at |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
On Fri, 2025-07-11 at 16:12 +0000, PG Doc comments form wrote:
> Page: https://www.postgresql.org/docs/17/ddl-schemas.html
> Description:
>
> In §5.10.3 these two sentences seem inconsistent:
>
> > When objects are referenced in any other context without schema
> qualification...the search path is traversed until a matching object is
> found. Therefore, in the default configuration, any unqualified access again
> can only refer to the public schema.
>
> Either unqualified access can refer to any schema in the search path,
> because the search path is traversed until a matching object is found, or
> else unqualified access can only refer to the public schema because the
> search path will not be traversed looking in other schemas for a matching
> object, but both of those possibilities conflict with one or the other of
> the sentences quoted from the manual.
>
> Obviously I'm missing something; I don't know which of the two sentences
> quoted from the manual to believe, or if I am to understand both are true,
> what I am misunderstanding about their meaning.
I don't see an inconsistency. The key phrase is "in the default configuration".
The default value for 'search_path' is '"$user", public'.
Now by default there is no schema with the same name as the database user, so
the effective default search path is just the 'public' schema.
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2025-07-12 16:22:45 | Re: Missing File weather.txt |
Previous Message | Fujii Masao | 2025-07-12 03:05:17 | Re: Missing File weather.txt |