Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNFhA-0005R2-9K for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Sep 2020 13:29:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kNFh9-0007vh-31 for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Sep 2020 13:29:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNFh8-0007vZ-Sp for pgsql-hackers@lists.postgresql.org; Tue, 29 Sep 2020 13:29:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNFh2-0007ev-Ik for pgsql-hackers@lists.postgresql.org; Tue, 29 Sep 2020 13:29:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 08TDTIxf607461; Tue, 29 Sep 2020 09:29:19 -0400 From: Tom Lane To: Michael Paquier cc: Postgres hackers 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: <20200929020312.GA10200@paquier.xyz> References: <20200928073330.GC2316@paquier.xyz> <300644.1601311769@sss.pgh.pa.us> <20200929020312.GA10200@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Tue, 29 Sep 2020 11:03:12 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <607459.1601386158.1@sss.pgh.pa.us> Date: Tue, 29 Sep 2020 09:29:18 -0400 Message-ID: <607460.1601386158@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier 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