Re: cannot read pg_class without having selected a database / is this a bug?
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: cannot read pg_class without having selected a database / is this a bug? |
| Дата | |
| Msg-id | 27960.1323100017@sss.pgh.pa.us обсуждение |
| Ответ на | Re: cannot read pg_class without having selected a database / is this a bug? (Robert Haas <robertmhaas@gmail.com>) |
| Ответы |
Re: cannot read pg_class without having selected a database
/ is this a bug?
|
| Список | pgsql-hackers |
Robert Haas <robertmhaas@gmail.com> writes:
> I'm still puzzled that Tomas got it working at all. If MyDatabaseId
> hasn't been set yet, the how did we manage to build a relcache entry
> for anything - let alone an unshared catalog?
Well, he wasn't actually issuing a SQL query, just calling some of the
pgstat.c subroutines that underlie the view. It happens that the pgstat
module has no backend-local initialization (at the moment, and
discounting the issue of making the process's own pgstat_activity entry),
so they were happy enough. It was the syscache stuff that was spitting
up.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера