Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXqKs-0004DH-4d for pgsql-general@arkaria.postgresql.org; Sat, 06 Jan 2018 15:24:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXqKr-0002tc-3J for pgsql-general@arkaria.postgresql.org; Sat, 06 Jan 2018 15:24:37 +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 1eXqKq-0002tO-FM for pgsql-general@lists.postgresql.org; Sat, 06 Jan 2018 15:24:36 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eXqKm-00036r-8t for pgsql-general@postgresql.org; Sat, 06 Jan 2018 15:24:35 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D4B1020879; Sat, 6 Jan 2018 10:24:29 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Sat, 06 Jan 2018 10:24:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=KF9+LrjGhJCEHOM+AFfLVW5bkIrqV 6x7ifdyXKAoP+E=; b=ce8mvggE5aJAvUiGgQAzHMQ3mIrfgSRkcJE2GR5JMqkcI HYLTdrfQZQzNZy/3Y6FadelKfPtHIARQEbjGvbIUakuW+RKtt0a8//xkgp7Dg20H +eQ/+Y3vI+FGlsHtwz/a0U4EDBMUZg6KW6TVUMLZIm9iz2pPd9HBUCCut5W5PIxO Z5PbkEPIBW1CiCmia52cbqvSfFlJGW19pLL5mVkphKCROdO+dta4qqGyZtgUNWfe eQdKy75djyw8SaswW9O5k+1CBu6KocOpvoJbofBW3O4gXvr0PQOe4TBMqySKWCS5 ei/X7y7aEUsu2VJjA06lwvxJbIBDiy+DKptopKFfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=KF9+Lr jGhJCEHOM+AFfLVW5bkIrqV6x7ifdyXKAoP+E=; b=fy4+yBGZ5DKR9pvZ3ULG/Q ZdtqwCk2qceJyZIPSwsjytZxOZWjfn6tibFl5dhttMaq8qTwVATxL7L37OJCT8ws 17swDab2s+2C9/E4G6mQWLk5rob2n4fXZ64BKgEhrcyCayqXX52JLJSM1UCfXnqC 47+ktdgOOv1p4yZRdA4uF8mt/J2sF1410lC46e0g3V6D9rv2ngdfB/lqGLwCN0ms 5eyxFYTQuhwk7m8/A41bd2sRRSFJ+U0abm9mETGH5fCtN4qNy5c6bmdlQ0niioQo FpsOWB//iFtbcpTaOdlG3PeO2ZgHFkJwxGoogZpachCQGkqtHcSFF9pdH6pcpj0g == X-ME-Sender: Received: from [192.168.1.3] (unknown [67.40.177.89]) by mail.messagingengine.com (Postfix) with ESMTPA id E709C7E322; Sat, 6 Jan 2018 10:24:28 -0500 (EST) Subject: Re: What generates pg_config.h? To: Travis Allison , Tom Lane Cc: Alvaro Herrera , floriparob@gmail.com, pgsql-general@postgresql.org, Christoph Berg References: <20180105212750.ip5ek6v4p3tiix7e@alvherre.pgsql> <20599.1515192990@sss.pgh.pa.us> <22433.1515194991@sss.pgh.pa.us> <52b48b90-159a-0341-23e1-e88e52daa86d@aklaver.com> <28314.1515211514@sss.pgh.pa.us> From: Adrian Klaver Message-ID: <67591f85-a910-2e0b-1fdd-9c774eacd65f@aklaver.com> Date: Sat, 6 Jan 2018 07:24:28 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 01/05/2018 09:36 PM, Travis Allison wrote: > Tom, I guess I don't understand the point of having a different > pg_config.h in my user/include/postgresql directory than the postgresql > server that I am running.  You mentioned building client code that would > reference the pg_config.h in user/include/postgresql.  A couple of > questions: > > What type of client code are you referring to? > What is the point of having a pg_config.h for a server that I am not > even running? Not Tom, but to answer: As to client code, that would include the Postgres CLI client psql or the Python adapter psycopg2 among others. This code does not need to be on the server machine, it can be anywhere you want a client to connect to a Postgres server. The point of a more recent pg_config.h is that client code compiled with it would be backwards compatible whereas compiling against an older version would result in code that would not work against newer servers. The problem you are running into is that the build process is using both the older(9.6.5) and newer(10.0) pg_config.h at the same time. > > Travis > > > > > > On Fri, Jan 5, 2018 at 8:05 PM, Tom Lane > wrote: > > Travis Allison > writes: > > I suppose an easy workaround is to copy my version 9.6 pg_config.h into my > > user/include/postgresql directory and replace the one installed by > > libpq-dev. > > > Can you think of any detrimental side-effects from doing that? > > I would not recommend that: it's likely to break code that's expecting > the Ubuntu-standard layout.  I think your best course is to adapt the > particular package you're having trouble with to work with that layout. > Maybe contact its author for help? > >                         regards, tom lane > > -- Adrian Klaver adrian.klaver@aklaver.com