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+Tgmoa4j02GGgdFA+xkmyHuKvribyBq4Je7V6y8V+vuPCv12A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: cannot read pg_class without having selected a database / is this a bug?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: cannot read pg_class without having selected a database / is this a bug?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sun, Dec 4, 2011 at 4:26 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Tomas Vondra <tv@fuzzy.cz> writes:
>> What about the pg_stat_activity - is it safe to access that from auth
>> hook or is that just a coincidence that it works (and might stop working
>> in the future)?
>
> It doesn't seem like a good thing to rely on.  There's certainly no
> testing being done that would cause us to notice if it stopped working
> so early in backend startup.

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?

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


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: [REVIEW] Patch for cursor calling with named parameters
Следующее
От: Robert Haas
Дата:
Сообщение: Re: missing rename support