From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jie Liang <jie@stbernard.com>
Cc: 'Bruce Momjian' <pgman@candle.pha.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: why schema name is same as username behaves different then others
Date: Thu, 05 Dec 2002 17:57:50 -0500
Message-ID: <5677.1039129070@sss.pgh.pa.us> (raw)
In-Reply-To: <E7E213858379814A9AE48CA6754F5ECB1E192A@mail01.stbernard.com>
References: <E7E213858379814A9AE48CA6754F5ECB1E192A@mail01.stbernard.com>
Jie Liang <jie@stbernard.com> writes:
> ####I expect to see something like:
You're neglecting the effects of search path. \dt only shows what's
visible in your search path. (IIRC, \dt *.* is the easiest way to
see all tables regardless of search path.)
> #### it seems if schema name is same as username then
> #### it will shadow the objects in the public schema that have same name.
That's what it's supposed to do, and yes this is documented, and yes
you can change it if you don't like it. Read about search_path.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, jie@stbernard.com, pgman@candle.pha.pa.us
Subject: Re: why schema name is same as username behaves different then others
In-Reply-To: <5677.1039129070@sss.pgh.pa.us>
References: <E7E213858379814A9AE48CA6754F5ECB1E192A@mail01.stbernard.com> <5677.1039129070@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox