Re: Passing current_database to BackgroundWorkerInitializeConnection

From: Andres Freund <andres(at)anarazel(dot)de>
To: Jeremy Finzel <finzelj(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Passing current_database to BackgroundWorkerInitializeConnection
Date: 2018-03-30 21:40:37
Message-ID: 20180330214037.ahwsper4sxnt5i7b@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2018-03-30 21:55:45 Re: Change RangeVarGetRelidExtended() to take flags argument?
Previous Message Jeremy Finzel 2018-03-30 21:36:59 Passing current_database to BackgroundWorkerInitializeConnection