Re: why schema name is same as username behaves different then others

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jie Liang <jie(at)stbernard(dot)com>
Cc: "'Bruce Momjian'" <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-admin(at)postgresql(dot)org
Subject: Re: why schema name is same as username behaves different then others
Date: 2002-12-05 22:57:50
Message-ID: 5677.1039129070@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Jie Liang <jie(at)stbernard(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Eisentraut 2002-12-05 23:21:45 Re: list schema
Previous Message Jie Liang 2002-12-05 22:49:02 why schema name is same as username behaves different then others