Re: Passing values to a dynamic background worker

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Keith Fiske <keith(at)omniti(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Passing values to a dynamic background worker
Date: 2017-04-18 16:34:28
Message-ID: eb73c20f-3093-93d7-74de-76494fb8d516@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 4/17/17 16:19, Keith Fiske wrote:
> I've reached a roadblock in that bgw_main_arg can only accept a single
> argument that must be passed by value for a dynamic bgw. I already
> worked around this for passing the database name to the my existing use
> of a bgw with doing partition maintenance (pass a simple integer to use
> as an index array value). But I'm not sure how to do this for passing
> multiple values in.

You can also store this kind of information in a table.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Petr Jelinek 2017-04-18 16:35:52 Re: some review comments on logical rep code
Previous Message Masahiko Sawada 2017-04-18 16:32:15 Re: Logical replication and synchronous replication