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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: About psql \dt unable display same name table which have different schema
Дата
Msg-id 1652895.1653408969@sss.pgh.pa.us
обсуждение исходный текст
Ответ на About psql \dt unable display same name table which have different schema  (徐志宇徐 <xuzhiyuster@gmail.com>)
Ответы Re: About psql \dt unable display same name table which have different schema  (徐志宇徐 <xuzhiyuster@gmail.com>)
Список pgsql-general
=?UTF-8?B?5b6Q5b+X5a6H5b6Q?= <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: existing row not found by SELECT ... WHERE CTID = ?
Следующее
От: 徐志宇徐
Дата:
Сообщение: Re: About psql \dt unable display same name table which have different schema