Re: Passing current_database to BackgroundWorkerInitializeConnection - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Passing current_database to BackgroundWorkerInitializeConnection
Date
Msg-id 20180330214037.ahwsper4sxnt5i7b@alap3.anarazel.de
Whole thread Raw
In response to Passing current_database to BackgroundWorkerInitializeConnection  (Jeremy Finzel <finzelj@gmail.com>)
Responses Re: Passing current_database to BackgroundWorkerInitializeConnection  (Jeremy Finzel <finzelj@gmail.com>)
List pgsql-hackers
On 2018-03-30 16:36:59 -0500, Jeremy Finzel wrote:
> I am having trouble figuring out the right way to do this, clearly missing
> something obvious.  I am simply trying to pass the current database
> to BackgroundWorkerInitializeConnection, but MyDatabaseId is showing as 0,
> and I am getting this error in the running of function get_database_name
> here at the top:

What do you mean with "current database"? Before you
BackgroundWorkerInitializeConnection() there is no such thing?

Greetings,

Andres Freund


pgsql-hackers by date:

Previous
From: Jeremy Finzel
Date:
Subject: Passing current_database to BackgroundWorkerInitializeConnection
Next
From: Andres Freund
Date:
Subject: Re: Change RangeVarGetRelidExtended() to take flags argument?