Re: listing relations

Поиск
Список
Период
Сортировка
От Brandon Metcalf
Тема Re: listing relations
Дата
Msg-id Pine.LNX.4.58L.0906111537310.11099@cedar.geronimoalloys.com
обсуждение исходный текст
Ответ на Re: listing relations  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: listing relations  (Raymond O'Donnell <rod@iol.ie>)
Re: listing relations  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: listing relations  (Greg Smith <gsmith@gregsmith.com>)
Список pgsql-general
t == tgl@sss.pgh.pa.us writes:

 t> Brandon Metcalf <brandon@geronimoalloys.com> writes:
 t> > Something interesting I've noticed.  If I have a table by the same
 t> > name in two different schemas, say public and foo, and my search path
 t> > is set to 'public, foo', \d without an argument lists only the one in
 t> > public.

 t> That's intentional.  It's designed to show the same table you'd get if
 t> you did "select * from tabname".  You can do "\d *.tabname" if you want
 t> to see all tables named tabname regardless of schema.

Yeah, I figured there was a reason for the SQL being crafted that way.

Is there a "\" command to show all tables in the current search path?

--
Brandon

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: search for partial dates
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: listing relations