Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCLv2-0007rX-81 for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jul 2022 14:03:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oCLv0-00053e-0E for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jul 2022 14:03:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCLuz-0004jA-NA for pgsql-hackers@lists.postgresql.org; Fri, 15 Jul 2022 14:03:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCLus-0004Xw-Hq for pgsql-hackers@postgresql.org; Fri, 15 Jul 2022 14:03:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 26FE3OV03370904; Fri, 15 Jul 2022 10:03:24 -0400 From: Tom Lane To: Alvaro Herrera cc: Simon Riggs , Michael Paquier , Bernd Helmle , Ashutosh Bapat , PostgreSQL Hackers , Ashutosh Bapat Subject: Re: Allowing REINDEX to have an optional name In-reply-to: <20220715130334.p2qe6nefuod7ncex@alvherre.pgsql> References: <20220715130334.p2qe6nefuod7ncex@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 15 Jul 2022 15:03:34 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3370902.1657893804.1@sss.pgh.pa.us> Date: Fri, 15 Jul 2022 10:03:24 -0400 Message-ID: <3370903.1657893804@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > Ah, one theory is that the libpq_pipeline program is getting linked to > an installed version of libpq that doesn't contain the fixes. Maybe you > can do `ldd /path/to/libpq_pipeline` and see which copy of libpq.so it > is picking up? That's pronounced "otool -L" on macOS. But in any case, it's going to point at the installation directory. One of the moving parts here is that "make check" will try to override the rpath that otool tells you about to make test programs use the libpq.dylib from the build tree. I say "try" because if you've got SIP enabled (see what "csrutil status" tells you), it will fail to do so and the installed libpq will be used. Maybe that's old. Standard recommendation on macOS with SIP on is to always do "make install" before "make check". regards, tom lane