| От | Michael Fuhr |
|---|---|
| Тема | Re: Relationship beween sequences (serial) and tables |
| Дата | |
| Msg-id | 20050908124248.GA68650@winnie.fuhr.org обсуждение |
| Ответ на | Relationship beween sequences (serial) and tables (Thusitha Kodikara <kthusi@yahoo.com>) |
| Список | pgsql-admin |
On Thu, Sep 08, 2005 at 01:03:26AM -0700, Thusitha Kodikara wrote:
> In many of my tables the primary key is bigserial for which
> sequences are automatcially generated. Through pg_catalog tables
> how can I find the relationship petween each table and its corresponding
> sequence ?
Depending on what information you're looking for, you might need
to query any of the following tables:
pg_attrdef
pg_attribute
pg_class
pg_constraint
pg_depend
pg_index
See also "Miscellaneous Functions" ("System Information Functions"
in 8.x) in the "Functions and Operators" chapter of the documentation.
It can also be useful to run "psql -E" or use "\set ECHO_HIDDEN"
in psql to show the SQL queries that psql makes for \d commands.
--
Michael Fuhr
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера