Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5t8p-0007ND-LI for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Sep 2018 13:49:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g5t8n-0001Zt-Ms for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Sep 2018 13:49:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5t8n-0001Zm-Bg for pgsql-hackers@lists.postgresql.org; Fri, 28 Sep 2018 13:49:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5t8f-0007JK-FI for pgsql-hackers@postgresql.org; Fri, 28 Sep 2018 13:49:07 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w8SDmwcr020672; Fri, 28 Sep 2018 09:48:58 -0400 From: Tom Lane To: Christoph Berg cc: PostgreSQL Hackers Subject: Re: pgsql: Build src/port files as a library with -fPIC, and use that in li In-reply-to: <20180928132013.GE26142@msg.df7cb.de> References: <20180928115830.GC26142@msg.df7cb.de> <19404.1538140436@sss.pgh.pa.us> <20180928132013.GE26142@msg.df7cb.de> Comments: In-reply-to Christoph Berg message dated "Fri, 28 Sep 2018 15:20:13 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20670.1538142538.1@sss.pgh.pa.us> Date: Fri, 28 Sep 2018 09:48:58 -0400 Message-ID: <20671.1538142538@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Christoph Berg writes: > Re: Tom Lane 2018-09-28 <19404.1538140436@sss.pgh.pa.us> >> I proposed in >> https://www.postgresql.org/message-id/19581.1538077716@sss.pgh.pa.us >> >> that we should remove pqsignal, as well as >> pg_utf_mblen >> pg_encoding_to_char >> pg_char_to_encoding >> pg_valid_server_encoding >> pg_valid_server_encoding_id >> >> from libpq's exports, on the grounds that (a) nobody should be using >> those (they're undocumented as exports), and (b) anybody who is using >> them should get them from libpgport/libpgcommon instead. Thoughts? > I'm fine with that if we say (a) should be true, and even if it is > not, (b) is an easy workaround. Bumping the libpq SONAME just because > of this seems excessive. Yeah, if anyone insists that this requires a soname bump, I'd probably look for another solution. Making the makefiles a bit cleaner is not worth the churn that would cause, IMO. The place where we'd probably end up if anyone's unhappy about this is that we'd still be symlinking the three files pqsignal.c, wchar.c, and encnames.c into libpq. That's not very desirable, but at least it'd be a fixed list rather than something we're continually having to change. regards, tom lane