Re: How can I find a schema that a table belong to?

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: How can I find a schema that a table belong to?
Дата
Msg-id ih7cel$37r$1@dough.gmane.org
обсуждение исходный текст
Ответ на Re: How can I find a schema that a table belong to?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane, 19.01.2011 19:19:
>> SELECT table_schema
>> FROM information_schema.tables
>> WHERE table_name = 'your_table'
>> ;
>
> That's not going to work, at least not in the interesting case where you
> have more than one candidate table --- that SELECT will list all of 'em.
>

Ah, right. I was a buit too quick with my answer.

Regards
Thomas

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

Предыдущее
От: bubba postgres
Дата:
Сообщение: Anyone use PG with kvm/virtio? Any gotchas or recommended settings?
Следующее
От: Lonni J Friedman
Дата:
Сообщение: Re: Anyone use PG with kvm/virtio? Any gotchas or recommended settings?