Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u5ni6-0067LR-Sg for pgsql-general@arkaria.postgresql.org; Fri, 18 Apr 2025 15:32:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u5ni5-00FSvT-4A for pgsql-general@arkaria.postgresql.org; Fri, 18 Apr 2025 15:32:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u5ni3-00FSup-R2 for pgsql-general@lists.postgresql.org; Fri, 18 Apr 2025 15:32:57 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u5ni1-000j1C-0o for pgsql-general@postgresql.org; Fri, 18 Apr 2025 15:32:55 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 16CB3114011C; Fri, 18 Apr 2025 11:32:52 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Fri, 18 Apr 2025 11:32:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1744990372; x=1745076772; bh=h4r/SmblWmr0vINaebmwOB/ceS1MbX/cV1pL1UdF3lM=; b= g88PK0DOuAmtXRNvzrUEgRxGNRuRkp3U3TFzfwP1WoESTfUYyzmS34CbxLF+liBr wOIDqh/+xtq1vrZvjIbcpfpAcvmeP12ZQm0Hk3YZrFGa1p42OIqI814HrCqsMv3m oanyfMVyN46d4AxD7yae7CzquPYzhj4anbxrwormN4ydajRnyFChm/uhRg0emguW XxsKMVmmv6Wy13iOXiVz3xLf0/yO5yFfLdzNmZhEsp5iJlsSt4wBbCIwkXShBWYG ePN5rpQc/5oF1HU8OHFn5gXgQwZxMxO8mHvYxWqaHxqdQGtNfiXHTScrewjBKipA kiXfAn8gW2Td2+VgFiffiQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1744990372; x= 1745076772; bh=h4r/SmblWmr0vINaebmwOB/ceS1MbX/cV1pL1UdF3lM=; b=O njPQCNkbNSF2bmU7Hvs0Vqxt63I300gb/GuD9cDooPRTQ1uyuVC6aXfpqjWbmBct INsMEnfpgqB8mfJjUQ2OPE++LInwXzq5+O9V7y458ZaK9HEusskn79swvmgIT8Ub ouxAaxoBn7wcOItym6fDrTVwa7rIFjF5Y6cASXv3pN6EA3lVMZkIOSazwLPixXQ2 3WzlVFbB8oTfd6d6C0kjKqzIJLTudtI5160u6CXaSkvl50ToPsQgXOZFdV7qufvy evcmRgPCeVEeZqADJyxvhechVHQynSvFZB7sWWKBZIuiUNrQitL8vDwnTrT3RKAH cNcyp8GD4Smnsa/BfTPvQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvfedvheefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkff ggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhirghnucfmlhgr vhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtf frrghtthgvrhhnpeduuddvffekjeffkeehtefhfeejveevveeiheffveejieffleevleei hedtveffvdenucffohhmrghinhepshhtrggtkhhovhgvrhhflhhofidrtghomhdpmhgrth hhvghushhmvghllhhordhiohenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpd hnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrnhht ohhnrdhtgihtsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrh grlhesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 18 Apr 2025 11:32:51 -0400 (EDT) Message-ID: <2b48e2c9-a72a-4798-807a-43c92cd1f5d8@aklaver.com> Date: Fri, 18 Apr 2025 08:32:50 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Cannot turn track_counts on To: Anton Shepelev Cc: pgsql-general@postgresql.org References: <20250416122749.2b2d25cafcd76aa7d633ed07@gmail.com> <1900177.1744815217@sss.pgh.pa.us> <20250417170534.b2e919e950b77c4d4dbd5483@gmail.com> <1a99f488-9d24-41d1-a1a5-17ea4ce87899@aklaver.com> <20250418002307.a029379d2c0f781ca7726f91@gmail.com> <5d7257a9-9c1c-461e-b902-819a43b8c0b8@aklaver.com> <20250418012557.ce1b2bfd28ce7e30b46f239d@gmail.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: <20250418012557.ce1b2bfd28ce7e30b46f239d@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/17/25 15:25, Anton Shepelev wrote: > Adrian Klaver to Anton Shepelev: > Yet that is what we get for `pg_config --version' on the > affected system. A nearly identical error message seems to > come up while installing psycopg2 -- a Python library for > Postgres, e.g.: > > > > > I have not the slightest idea why pg_config should print > this message, unless it is not a genuine pg_config. I will > be checking its binary against the one that works as expected > on our reference system. Found it. It is coming from the Debian postgresql-common packaging. /usr/bin/pg_config is wrapper that contains: #!/bin/sh # If postgresql-server-dev-* is installed, call pg_config from the latest # available one. Otherwise fall back to libpq-dev's version. # # (C) 2011 Martin Pitt # (C) 2014-2018 Christoph Berg # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. set -e PGBINROOT="/usr/lib/postgresql/" #redhat# PGBINROOT="/usr/pgsql-" LATEST_SERVER_DEV=`ls -v $PGBINROOT*/bin/pg_config 2>/dev/null|tail -n1` if [ -n "$LATEST_SERVER_DEV" ]; then exec "$LATEST_SERVER_DEV" "$@" else if [ -x /usr/bin/pg_config.libpq-dev ]; then exec /usr/bin/pg_config.libpq-dev "$@" else echo "You need to install postgresql-server-dev-NN for building a server-side extension or libpq-dev for building a client-side application." >&2 exit 1 fi fi The message is telling you that on the machine you ran pg_config you have not installed either: postgresql-server-dev-X where X is a major version or libpq-dev If you want to get information from pg_config you will need to install one or the other. I would suggest libpq-dev. -- Adrian Klaver adrian.klaver@aklaver.com