Re: pg_init

2019-10-09 Thread Craig Ringer
On Wed, 9 Oct 2019 at 00:33, Natarajan R 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; loo

Re: pg_init

2019-10-08 Thread Antonin Houska
Tomas Vondra wrote: > On Tue, Oct 08, 2019 at 10:03:03PM +0530, Natarajan R wrote: > >I want to read pg_database from pg_init... > > > >Is using heap_open() is possible? or else any other way is there ? > > This is way too vague question - I have no idea what you mean by > pg_init, for example.

Re: pg_init

2019-10-08 Thread Tomas Vondra
On Tue, Oct 08, 2019 at 10:03:03PM +0530, Natarajan R wrote: I want to read pg_database from pg_init... Is using heap_open() is possible? or else any other way is there ? This is way too vague question - I have no idea what you mean by pg_init, for example. And it's probably a good idea to exp