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+Tgmobc52X=11rwUWdTJcWFqwqcZE+5NAg5pxJqcxB_+0B8bA@mail.gmail.com
обсуждение исходный текст
Ответ на cannot read pg_class without having selected a database / is this a bug?  (Tomas Vondra <tv@fuzzy.cz>)
Ответы Re: cannot read pg_class without having selected a database / is this a bug?  (Tomas Vondra <tv@fuzzy.cz>)
Список pgsql-hackers
2011/12/3 Tomas Vondra <tv@fuzzy.cz>:
> psql: FATAL:  cannot read pg_class without having selected a database
>
> I've found this happens because the extension defines a client auth hook
> that reads pg_stat_activity. The really interesting thing is that this
> happens only when I start several backends 'at the same time' right
> after the cluster is started. From that time, everything works just fine.

I'm surprised this ever works.  To read pg_stat_activity, you need a
relcache entry for it.  And how will you build one without selecting a
database?

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


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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: cannot read pg_class without having selected a database / is this a bug?
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: cannot read pg_class without having selected a database / is this a bug?