Re: Problem with oids for table names getting out of sync?
В списке pgsql-general по дате отправления:
| От | omar |
|---|---|
| Тема | Re: Problem with oids for table names getting out of sync? |
| Дата | |
| Msg-id | 46150306.3060107@omnicode.com обсуждение исходный текст |
| Ответ на | Re: Problem with oids for table names getting out of sync? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Problem with oids for table names getting out of sync?
|
| Список | pgsql-general |
>> SELECT relfilenode, relname FROM pg_class WHERE relname !~ '^(pg_|sql_)' >> AND relkind = 'r' >> > Oid o = PQftable(_res, i); > > > Um ... are you laboring under some delusion about relfilenode being the > same as relation OID? > > Apparently I am. libpq docs claim that "You can query the system table pg_class to determine exactly which table is referenced." for PQftable. I query pg_class and the only column that looks remotely like a unique oid is relfilenode. The other thing is that it works most of the time and starts to work again when I dump and restore. Thanks
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера