Re: About psql \dt unable display same name table which have different schema

Поиск
Список
Период
Сортировка
От 徐志宇徐
Тема Re: About psql \dt unable display same name table which have different schema
Дата
Msg-id CAOCebiL1ycW++wXVJSak2DFqzaKi8Cqf16zOrt_9WL1j3vY3SQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: About psql \dt unable display same name table which have different schema  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi Tom.

  Thanks for your explanation. I got it.
  I really appreciate it.

                                                                                  Jack Xu.

Tom Lane <tgl@sss.pgh.pa.us> 于2022年5月25日周三 00:16写道:
徐志宇徐 <xuzhiyuster@gmail.com> writes:
> I don't know why this problem exist. Why unable display both table "
> public.test10 、 new. test10 "

That's behaving as designed: \dt will show you tables that are
accessible with an unqualified name, but new.test10 is hidden
behind public.test10, so it's not accessible except by
qualification.

You can do "\dt *.*" or "\dt new.*", etc, to see such tables.

See here for more info:

https://www.postgresql.org/docs/current/app-psql.html#APP-PSQL-PATTERNS

                        regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: About psql \dt unable display same name table which have different schema
Следующее
От: Aleš Zelený
Дата:
Сообщение: Pg14 possible index corruption after reindex concurrently