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 1guRac-0007hV-Nw for pgsql-general@arkaria.postgresql.org; Fri, 15 Feb 2019 00:42: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 1guRab-00034h-6S for pgsql-general@arkaria.postgresql.org; Fri, 15 Feb 2019 00:42:49 +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 1guRaa-00034W-UU for pgsql-general@lists.postgresql.org; Fri, 15 Feb 2019 00:42:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guRaY-0005Yx-Je for pgsql-general@lists.postgresql.org; Fri, 15 Feb 2019 00:42:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x1F0gfOJ030314; Thu, 14 Feb 2019 19:42:41 -0500 From: Tom Lane To: Alan Nilsson cc: pgsql-general@lists.postgresql.org Subject: Re: loading plpython error In-reply-to: <62549B79-FEB1-4046-83AB-1D0FEA68484E@apple.com> References: <62549B79-FEB1-4046-83AB-1D0FEA68484E@apple.com> Comments: In-reply-to Alan Nilsson message dated "Thu, 14 Feb 2019 16:17:58 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30312.1550191361.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 14 Feb 2019 19:42:41 -0500 Message-ID: <30313.1550191361@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alan Nilsson writes: > Platform: Linux x86-64, CentOS 6, Postgres 11.1. > We have installed from the YUM repo. The server runs fine but we are tr= ying to add python support. > yum install postrgesql11-contrib postgresql11-plpython > I can see the installed files in the correct locations but when we invok= e create extension, we are greeted with the following error: > ERROR: could not load library "/usr/pgsql-11/lib/plpython2.so": /usr/pg= sql-11/lib/plpython2.so: undefined symbol: getmissingattr getmissingattr is a new core-PG function in 11.2. I believe this means you're trying to load an 11.2 build of plpython2.so into an 11.1 server. You need to either update the server, or find an 11.1 build of plpython. regards, tom lane