Re: [HACKERS] pg_background contrib module proposal - Mailing list pgsql-hackers

From Andrew Borodin
Subject Re: [HACKERS] pg_background contrib module proposal
Date
Msg-id CAJEAwVH4FZvCJJH9ZNArMfqAeJf0_5ubSaUzBTRinvRr=K7ENA@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] pg_background contrib module proposal  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: [HACKERS] pg_background contrib module proposal  (Andrew Borodin <borodin@octonica.com>)
List pgsql-hackers
2016-12-09 18:00 GMT+05:00 Robert Haas <robertmhaas@gmail.com>:
> It looks like this could be reworked as a client of Peter Eisentraut's
> background sessions code, which I think is also derived from
> pg_background:
>
> http://archives.postgresql.org/message-id/e1c2d331-ee6a-432d-e9f5-dcf85cffaf29@2ndquadrant.com
>
> That might be good, because then we wouldn't have to maintain two
> copies of the code.

Code looks quite different. I mean bgsession.c code and pg_background.c code.
Definitly, there is possibility to refactor both patches to have
common subset of base routines, they operate with similar concepts.
But to start, it's better to choose which patch goes first, or merge
them.

There is no possibility to make one on base of other since they both
require some work.
Personally, I like C code from pg_background more. It is far better
commented and has more exceptions info for user. But interface of
bgsessions is crispier. Finally, they solve different problems.

I signed up for review there too (in background sessions patch). I
hope I'll have enough resources to provide decent review for both in
december, before commitfest.

Best regards, Andrey Borodin.



pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: [HACKERS] snapbuild woes
Next
From: Joel Jacobson
Date:
Subject: [HACKERS] Typo in doc/src/sgml/catalogs.sgml