Re: What query on system tables retrieves table or queries definitoin

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: What query on system tables retrieves table or queries definitoin
Дата
Msg-id 20060304214748.GG29180@svana.org
обсуждение исходный текст
Ответ на What query on system tables retrieves table or queries definitoin  (lists@adontendev.net)
Список pgsql-general
On Sat, Mar 04, 2006 at 03:13:18AM +0000, lists@adontendev.net wrote:
>
>
> What is the query for retrieving a tables and a views definition from the system
> tables (in 7.4).
>
> I am trying to find my way in the system tables and I am finding very confusing,
> especially way in the way the tables are linked.

If you start psql with the -E switch or use "\set ECHO_HIDDEN = 'on'"
then the \d command print the queries used to generate the output. This
should give you a good start. Alternativly, use the information_schema.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Вложения

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

Предыдущее
От: "Javier Velez Perez"
Дата:
Сообщение:
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Questions about privileges