On Fri, 23 May 2008, Laurent ROCHE wrote:
> I would like to write a request where I would get the table name and
> column name of a sequence. I have been looking at the sytem table and
> could not link the sequence from pg_class to a table (and even less to a
> table).
There's an example of how to chain between two pg_class entries using
pg_depend that I think is close to what you're looking for at
http://wiki.postgresql.org/wiki/Fixing_Sequences
--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера