Re: PG12, PGXS and linking pgfeutils
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,
Ian Barwick <ian.barwick@2ndquadrant.com>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2019-05-13T22:51:54Z
Lists: pgsql-hackers
Attachments
- get-rid-of-pg_rewind-logging-files.patch (text/x-diff) patch
Alvaro Herrera <alvherre@2ndquadrant.com> writes: > On 2019-May-13, Tom Lane wrote: >> I started working on a patch to do that, and soon noticed that there >> are pre-existing files logging.[hc] in src/bin/pg_rewind/. This seems >> like a Bad Thing, in fact the #includes in pg_rewind/ are already a >> little confused due to this. I think we should either rename those >> two pg_rewind files to something else, or rename the generic ones, >> perhaps to "fe_logging.[hc]". The latter could be done nearly >> trivially as part of the movement patch, but on cosmetic grounds >> I'd be more inclined to do the former instead. Thoughts? > I'd rename both :-) On closer inspection, there's so little left in pg_rewind's logging.h/.c (one function and a couple of global variables) that the better answer is probably just to move those objects somewhere else and nuke the separate files altogether. As attached. regards, tom lane
Commits
-
Move logging.h and logging.c from src/fe_utils/ to src/common/.
- fc9a62af3f87 12.0 landed
-
Remove pg_rewind's private logging.h/logging.c files.
- 53ddefbaf8a0 12.0 landed
-
Unified logging system for command-line programs
- cc8d41511721 12.0 cited