Re: How do I list the schema for a table or procedure?

Поиск
Список
Период
Сортировка
От W. Scott Gibson
Тема Re: How do I list the schema for a table or procedure?
Дата
Msg-id xaq_c.23$ax4.0@fe61.usenetserver.com
обсуждение исходный текст
Ответ на How do I list the schema for a table or procedure?  (googlemike@hotpop.com (Google Mike))
Список pgsql-general
Google Mike wrote:
> How do I list the schema for a table or procedure? Is there a command
> I can do in psql to list this, or do I have to join a series of tables
> to see that?

You can do a "pg_dump -s <DBNAME>" to see the full schema of the
database.  To see just a table of the database issue the command
"pg_dump -st <TABLENAME> <DBNAME>".  These are run from the command line
and not within the psql shell.

Within psql you could use "\d <TABLENAME>" to describe a specific table.

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

Предыдущее
От: John
Дата:
Сообщение: Migrating from MaxDB to postgresql
Следующее
От: googlemike@hotpop.com (Google Mike)
Дата:
Сообщение: Re: HOWTO: Get a table or database definition