RE: get_database_name() from background worker - Mailing list pgsql-hackers

From tsunakawa.takay@fujitsu.com
Subject RE: get_database_name() from background worker
Date
Msg-id OSAPR01MB50731135DADE11BF9749FECFFE550@OSAPR01MB5073.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Re: get_database_name() from background worker  (Koichi Suzuki <koichi@2ndquadrant.com>)
Responses RE: get_database_name() from background worker
List pgsql-hackers
From: Koichi Suzuki <koichi@2ndquadrant.com>
> I'm not using this.   Is this the must to use get_database_name()?

I don't think pg_background is a must, but the system catalog access by get_database_name() should require database
connectionand transaction.  See src/test/modules/worker_spi/worker_spi.c for an example of background worker.  That
usesboth of them.
 


Regards
Takayuki Tsunakawa



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Runtime pruning problem
Next
From: Craig Ringer
Date:
Subject: Re: get_database_name() from background worker