Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gEsp4-00036F-Fp for pgsql-general@arkaria.postgresql.org; Tue, 23 Oct 2018 09:17:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gEsp0-0002u0-MR for pgsql-general@arkaria.postgresql.org; Tue, 23 Oct 2018 09:17:54 +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.89) (envelope-from ) id 1gEsp0-0002ts-E9 for pgsql-general@lists.postgresql.org; Tue, 23 Oct 2018 09:17:54 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gEsou-0003Cs-Fv for pgsql-general@postgresql.org; Tue, 23 Oct 2018 09:17:53 +0000 Received: from [192.168.127.1] (port=60794 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1gEsor-000MV3-9G; Tue, 23 Oct 2018 09:17:45 +0000 Received: from [127.0.0.1] (port=59015 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1gEsoq-0003Ov-Ew; Tue, 23 Oct 2018 09:17:44 +0000 From: Andrew Gierth To: GPT Cc: pgsql-general@postgresql.org Subject: Re: How to declare PG version for compiling extensions. In-Reply-To: (GPT's message of "Mon, 22 Oct 2018 15:53:04 +0200") Message-ID: <8736sx81vk.fsf@news-spur.riddles.org.uk> References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Tue, 23 Oct 2018 10:17:43 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "GPT" == GPT writes: GPT> Unfortunately, I had not installed the following package: GPT> "postgresql-server-dev-11" GPT> By the way, shouldn't a warning message appear while trying to run: GPT> `PATH=/usr/lib/postgresql/11/bin:$PATH make USE_PGXS=1` GPT> warning the user that some files are missing. It's more reliable to do (if the makefile is correctly written): make USE_PGXS=1 PG_CONFIG=/usr/lib/postgresql/11/bin/pg_config By specifying the pg_config binary explicitly rather than relying on the PATH, you avoid the chance of picking up an incorrect copy by mistake. This is why the standard form for pgxs makefiles has an assignment for PG_CONFIG before the PGXS assignment line; the command-line option overrides it. -- Andrew (irc:RhodiumToad)