From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: __pg_log_level in anonynous enum should be initialized? (Was: pgsql: Change SHA2 implementation based on OpenSSL to use EVP digest ro)
Date: Tue, 29 Sep 2020 09:29:18 -0400
Message-ID: <607460.1601386158@sss.pgh.pa.us> (raw)
In-Reply-To: <20200929020312.GA10200@paquier.xyz>
References: <E1kMk96-0008Gm-7c@gemulon.postgresql.org>
<20200928073330.GC2316@paquier.xyz>
<300644.1601311769@sss.pgh.pa.us>
<20200929020312.GA10200@paquier.xyz>
Michael Paquier <michael@paquier.xyz> writes:
> On Mon, Sep 28, 2020 at 12:49:29PM -0400, Tom Lane wrote:
>> Since prairiedog is not likely to be around forever, I propose that
>> we ought to enforce this going forward by arranging for common/logging.c
>> to not get built into the libpgcommon_shlib library variant.
> Agreed. This makes sense in the long term, so attached is a proposal
> of patch. I did not really see the point in complicating the MSVC
> scripts for that though. The new variable names look natural to me
> like that, the new comment may need some tweaks.
Hm, it doesn't seem like "OBJS_PGCOMMON" conveys much. I think
OBJS_FRONTEND ought to be the set of files built for frontend
application use (i.e., libpgcommon.a), so we need a new name
for what will go into libpgcommon_shlib.a. Maybe OBJS_SHLIB,
or to be even more explicit, OBJS_FRONTEND_SHLIB.
As for the comment, maybe "logging.c is excluded from OBJS_SHLIB
as a matter of policy, because it is not appropriate for general
purpose libraries such as libpq to report errors directly."
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael@paquier.xyz, pgsql-hackers@lists.postgresql.org
Subject: Re: __pg_log_level in anonynous enum should be initialized? (Was: pgsql: Change SHA2 implementation based on OpenSSL to use EVP digest ro)
In-Reply-To: <607460.1601386158@sss.pgh.pa.us>
References: <E1kMk96-0008Gm-7c@gemulon.postgresql.org> <20200928073330.GC2316@paquier.xyz> <300644.1601311769@sss.pgh.pa.us> <20200929020312.GA10200@paquier.xyz> <607460.1601386158@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox