| От | Alvaro Herrera |
|---|---|
| Тема | Re: pg_catalog question: Sequence attributes. |
| Дата | |
| Msg-id | 20130904191612.GG5227@eldon.alvh.no-ip.org обсуждение |
| Ответ на | pg_catalog question: Sequence attributes. (Raphael Araújo e Silva <rkhaotix@gmail.com>) |
| Список | pgsql-general |
Raphael Araújo e Silva escribió: > My doubt: Is there some way to get all sequences attributes at once > without execute repeatedly SELECT * FROM [sequence_name]? I don't think there is, yet. > Also, I'm wondering if there is some way to resolve a sequence OID into > it's real representation. Let's say that my sequence called "seq_abc" has > the OID 123456. It's possible to make something like: > > SELECT * FROM 123456::oid or any function that make it's to me!? Cast it to regclass: oalvherre=# select 111890::regclass; regclass -------------- datos_id_seq (1 fila) -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера