Re: pg_init

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: pg_init
Дата
Msg-id CAMsr+YFp8QJOeMSBqnKs4sFwu+6EuJuqZOHgv+SBm+zY8crRAQ@mail.gmail.com
обсуждение исходный текст
Ответ на pg_init  (Natarajan R <nataraj3098@gmail.com>)
Список pgsql-hackers
On Wed, 9 Oct 2019 at 00:33, Natarajan R <nataraj3098@gmail.com> wrote:
I want to read pg_database from pg_init...

Is using heap_open() is possible? or else any other way is there ?

It's not possible from _PG_init .

I replied to a similar thread with details on how bgworkers can access different databases; look at the archives.

The gist is that you have to register a bgworker that attaches to shared memory and to a database (or use InvalidOid if you only want shared catalog access), then do your work from there.

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 2ndQuadrant - PostgreSQL Solutions for the Enterprise

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Transparent Data Encryption (TDE) and encrypted files
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Shared memory