Re: cannot read pg_class without having selected a database / is this a bug?

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: cannot read pg_class without having selected a database / is this a bug?
Дата
Msg-id CA+TgmoYr-pJ64ZVms3BjF3gj-dLzRW4qfz9GyQu5dx3xPbA=GQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: cannot read pg_class without having selected a database / is this a bug?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Dec 5, 2011 at 10:46 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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.

Oh, I see.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: missing rename support
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: [PATCH] Caching for stable expressions with constant arguments v3