Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1gpB-0007lY-JB for pgsql-general@arkaria.postgresql.org; Thu, 07 Mar 2019 00:23:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1gp8-0002G8-Hu for pgsql-general@arkaria.postgresql.org; Thu, 07 Mar 2019 00:23:46 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1gp6-0002Ep-O0 for pgsql-general@lists.postgresql.org; Thu, 07 Mar 2019 00:23:46 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1goy-0003hk-GS for pgsql-general@lists.postgresql.org; Thu, 07 Mar 2019 00:23:44 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 9095722BF5; Wed, 6 Mar 2019 19:23:34 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 06 Mar 2019 19:23:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=o 1wT8t5iPVP90KLQ7G47bDXF3xIck4uLkCDokNVUt6Y=; b=mhoK7bGlSoCqEYVDm 7gkrbMCL1f/afZerFwXYhiMZ5ofE5xkCb6g1C3axtPT6n5jzExEpPssylsR9GV9e gFinWMyGA5T05GT9an6EMcR4v58T5ibOlixlVQoGxzbDtk18eFkBFkCf2HB6KoNt mw5l3q24vVcol5k0S0pN4RR5fRbS3y21vyUaX2ZY3ThyuXZDBgk2ixKoenqbZpj7 rvqYDP4Wy6KCFlvHqWY9x+g/r0jKZe9ibtynu6dlb1xi2GfrVYz8yFfROUY4oQ30 nTKIH3mMaMSClRAO3dVBS6oORg/Wa4Jt5G3rSaCfITOwGL3cnbPozwnihc4WEqhW BIFJw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=o1wT8t5iPVP90KLQ7G47bDXF3xIck4uLkCDokNVUt 6Y=; b=NSyBnMlLYck78QC6JEzsWp+43+ha9GnlMVpeEndm8nmSWgfzmj94M0KXM 8z7Vfaqo/1vPcTfIEzdbeBWCDAat2ZMmtiihrszMWjy3xOoyJf/9duSJboRvTJaB 6a1pZPzTBOL8pTAitAuDMCBvQaziGtdFeuDqBRwhx6sj4CibWrFoGTk6mbdJAo+d 23fJMqTpw3WDjopX5SWy9zEQveu9LUfTnQiM2DWaAUFT2y0IcYGyTMXw4LVJHSs0 juKAvIaXSeWFwEcfPfI+aZgIkRRsiXkYMe0NjghTUQAsfkSk9ST3m8wiGMOw7qdO TABUUgljdlWV39KcrlDCq/UoYfjOg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrfeejgddvfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfkphepjedurddvuddv rdduhedtrddvtddvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 55B4010310; Wed, 6 Mar 2019 19:23:33 -0500 (EST) Subject: Re: python install location To: Alan Nilsson , pgsql-general@lists.postgresql.org References: <9AD5039A-4ADF-422E-8790-E116F5129F52@apple.com> From: Adrian Klaver Message-ID: Date: Wed, 6 Mar 2019 16:23:32 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <9AD5039A-4ADF-422E-8790-E116F5129F52@apple.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/6/19 4:12 PM, Alan Nilsson wrote: > How does postgres determine which install of python to use in conjunction with plpythonu? We have a CentOS6 machine with python 2.6 and 2.7 installed on it. The 2.6 version is in the canonical location and the version which gets used when using the plpython extension. > > Is there a way, in postgres, short of rebuilding that we can tell postgres which install of python to use when invoking plpython? https://www.postgresql.org/docs/11/plpython-python23.html > > thanks > alan > > > -- Adrian Klaver adrian.klaver@aklaver.com