Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyj4O-0005aD-VZ for pgsql-admin@arkaria.postgresql.org; Wed, 21 Mar 2018 19:06:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eyj4M-0000eO-Rn for pgsql-admin@arkaria.postgresql.org; Wed, 21 Mar 2018 19:06:42 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyj4M-0000eE-Kr for pgsql-admin@lists.postgresql.org; Wed, 21 Mar 2018 19:06:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyj4I-0005dJ-Ud for pgsql-admin@postgresql.org; Wed, 21 Mar 2018 19:06:42 +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 w2LJ6aX4013003; Wed, 21 Mar 2018 15:06:36 -0400 From: Tom Lane To: dbx postgres cc: pgsql-admin Subject: Re: psql error In-reply-to: References: Comments: In-reply-to dbx postgres message dated "Wed, 21 Mar 2018 12:20:38 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13001.1521659196.1@sss.pgh.pa.us> Date: Wed, 21 Mar 2018 15:06:36 -0400 Message-ID: <13002.1521659196@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk dbx postgres writes: > I have postgres running on my server but when i try to run psql I get the > below error > *psql: symbol lookup error: psql: undefined symbol: PQconnectdbParams * Apparently, you have a 9.0-or-later psql trying to use a pre-9.0 copy of libpq.so, because that function was added in 9.0. This would seem to mean that you have (portions of?) at least two different PG installations, and they're not staying out of each others' way. Hard to say more than that with only this much data. If this is a Linux platform, applying "ldd" to the psql executable would reveal which libpq it's trying to use. regards, tom lane