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 1mhnED-00019X-P8 for pgsql-admin@arkaria.postgresql.org; Tue, 02 Nov 2021 06:25:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mhnEB-0007Qh-VK for pgsql-admin@arkaria.postgresql.org; Tue, 02 Nov 2021 06:24:59 +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 1mhnEB-0007QY-MB for pgsql-admin@lists.postgresql.org; Tue, 02 Nov 2021 06:24:59 +0000 Received: from carbon.misis.ru ([85.143.104.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhnE7-0003Ss-ST for pgsql-admin@lists.postgresql.org; Tue, 02 Nov 2021 06:24:58 +0000 Received: from mail.tzirechnoy.ru (unknown [10.1.250.11]) by carbon.misis.ru (Postfix) with ESMTP id 2EBF21FDF3 for ; Tue, 2 Nov 2021 09:24:51 +0300 (MSK) Received: by mail.tzirechnoy.ru (Postfix, from userid 1000) id 3F327A42A4; Tue, 2 Nov 2021 09:24:51 +0300 (MSK) Date: Tue, 2 Nov 2021 09:24:51 +0300 From: Ilya Anfimov To: pgsql-admin@lists.postgresql.org Subject: Re: How to control which Python interpreter Postgres uses? Message-ID: <20211102062450.GA1678439@azor.tzirechnoy.ru> Mail-Followup-To: Ilya Anfimov , pgsql-admin@lists.postgresql.org References: <1311504.1635804203@sss.pgh.pa.us> <3ad0a272-3ed1-3a9b-dfd3-22157283e278@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ad0a272-3ed1-3a9b-dfd3-22157283e278@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 2EBF21FDF3 X-Rspamd-Server: carbon X-Spamd-Result: default: False [0.97 / 15.00]; ARC_NA(0.00)[]; BAYES_HAM(-0.03)[52.53%]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_ONE(0.00)[1]; RCVD_NO_TLS_LAST(0.10)[]; TO_DN_NONE(0.00)[] List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Nov 01, 2021 at 08:52:27PM -0500, Ron wrote: > Why would recompiling Python affect what Postgresql points to? Not python, but plpython. The extension that adds python as a server programming language to postgres. > > On 11/1/21 5:06 PM, Ni Ne wrote: > > Would I recompile the plpython package or postgres itself? > > ---------------------------------------------------------------------- > > From: Tom Lane > Sent: Monday, November 1, 2021 4:03 PM > To: Ni Ne > Cc: pgsql-admin@lists.postgresql.org > Subject: Re: How to control which Python interpreter Postgres uses? > > Ni Ne writes: > > How can I adjust my postgres settings to tell it which Python > interpreter binary to use? > > You'd have to recompile plpython against the particular libpython > you want to use. > > regards, tom lane > > -- > Angular momentum makes the world go 'round.