Re: Problem with oids for table names getting out of sync?
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Problem with oids for table names getting out of sync? |
| Дата | |
| Msg-id | 18930.1175749819@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Problem with oids for table names getting out of sync? (Omar Eljumaily <omar2@omnicode.com>) |
| Ответы |
Re: Problem with oids for table names getting out of sync?
|
| Список | pgsql-general |
Omar Eljumaily <omar2@omnicode.com> writes:
> I've run into this sort of obscure problem. I'm using libpq with a
> front end database api where I need to track column names and how
> they're returned in libpq queries. What's happening is that I start out
> with a set of table names when I open my database with a query:
> SELECT relfilenode, relname FROM pg_class WHERE relname !~ '^(pg_|sql_)'
> AND relkind = 'r'
> But these don't agree with the oids when I subsequently fetch my rows
> and use the following:
> Oid o = PQftable(_res, i);
Um ... are you laboring under some delusion about relfilenode being the
same as relation OID?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера