Re: [HACKERS] background sessions - Mailing list pgsql-hackers

From Andrew Borodin
Subject Re: [HACKERS] background sessions
Date
Msg-id CAJEAwVHkte0fak8SinP=ZQgCyHPTdf2BPi52h6RGZ4CbKi0b3w@mail.gmail.com
Whole thread Raw
In response to background sessions  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: [HACKERS] background sessions  (Robert Haas <robertmhaas@gmail.com>)
Re: [HACKERS] background sessions  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
Hi!

I'm planning to review this patch.
I have some questions, maybe answers could help me understand patch better.
1. As far as I can see, we connot use COPY FROM STDIN in bg session?
Since one of purposes is to orchestrate transactions, may be that
would be valuable.
2. From my point of view the interface of the feature is the strong
point here (compared to pg_background). But it does not help
programmer to follow good practice: bgworker is a valuable and limited
resource, may be we could start session with something like
TryBeginSession()? May be this violates some policies or idioms which
I'm not aware of.

Thank you for your work.

Best regards, Andrey Borodin.



pgsql-hackers by date:

Previous
From: Joel Jacobson
Date:
Subject: [HACKERS] Typo in doc/src/sgml/catalogs.sgml
Next
From: Geoff Winkless
Date:
Subject: Re: [HACKERS] jsonb problematic operators