But why shadow happens only schema name is SAME as username??
Jie
-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Thursday, December 05, 2002 2:58 PM
To: Jie Liang
Cc: 'Bruce Momjian'; pgsql-admin@postgresql.org
Subject: Re: why schema name is same as username behaves different then
others
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
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера