Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQNwu-0007Ei-SK for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Jul 2016 00:04:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bQNwu-0000na-BK for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Jul 2016 00:04:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bQNvY-0007id-Dm for pgsql-hackers@postgresql.org; Fri, 22 Jul 2016 00:02:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bQNvR-0006ZN-1d for pgsql-hackers@postgresql.org; Fri, 22 Jul 2016 00:02:51 +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 u6M02SfL020191; Thu, 21 Jul 2016 20:02:28 -0400 From: Tom Lane To: Michael Paquier cc: David Steele , Robert Haas , David Fetter , Alvaro Herrera , Magnus Hagander , Peter Eisentraut , Heikki Linnakangas , Julian Markwort , Stephen Frost , PostgreSQL mailing lists , Valery Popov Subject: Re: Password identifiers, protocol aging and SCRAM protocol In-reply-to: References: <20160720181257.GA686053@alvherre.pgsql> <20160720202524.GA16111@fetter.org> <88f35221-2abd-6a31-a75d-28a3dc3a5b30@pgmasters.net> <29704.1469122290@sss.pgh.pa.us> <19611.1469144923@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Fri, 22 Jul 2016 08:57:07 +0900" Date: Thu, 21 Jul 2016 20:02:28 -0400 Message-ID: <20190.1469145748@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Michael Paquier writes: > On Fri, Jul 22, 2016 at 8:48 AM, Tom Lane wrote: >> I'm confused. We need that code in both libpq and backend, no? >> src/common is the place for stuff of that description. > Not necessarily. src/interfaces/libpq/Makefile uses a set of files > like md5.c which is located in the backend code and directly compiles > libpq.so with them, so one possibility would be to do the same for > sha.c: locate the file in src/backend/libpq/ and then fetch the file > directly when compiling libpq's shared library. Meh. That seems like a hack left over from before we had src/common. Having said that, src/interfaces/libpq/ does have some special requirements, because it needs the code compiled with -fpic (on most hardware), which means it can't just use the client-side libpgcommon.a builds. So maybe it's not worth improving this. > One thing about my current set of patches is that I have begun adding > files from src/common/ to libpq's list of files. As that would be new > I am wondering if I should avoid doing so. Well, it could link source files from there just as easily as from the backend. Not object files, though. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers