Skip site navigation (1) Skip section navigation (2)

Re: Psql errors

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Carol Walter <walterc(at)indiana(dot)edu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Psql errors
Date: 2008-12-23 04:50:52
Message-ID: 15435.1230007852@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
Carol Walter <walterc(at)indiana(dot)edu> writes:
> I just installed Postgres 8.3.4.  I have an instance of 8.2.4 running  
> on the same box.  When I start psql I get errors as follows:
> ...
> template1=# \l
> ld.so.1: psql: fatal: relocation error: file /db02/postgres/bin/psql:  
> symbol pg_valid_server_encoding_id: referenced symbol not found

pg_valid_server_encoding_id is exported by the 8.3 version of libpq.so,
but not by 8.2.  So the problem here is that your 8.3 psql is binding
to the wrong version of libpq.so.  You didn't say what the platform
is, but the issue is probably related to the search path used to find
shared libraries.

It would probably work to just overwrite the 8.2 library with 8.3
--- it should be backwards compatible.  (Better save a backup copy
in case not, of course.)

			regards, tom lane

In response to

Responses

pgsql-admin by date

Next:From: Tom LaneDate: 2008-12-23 05:02:03
Subject: Re: Migration \ OID question
Previous:From: Lipker, JosephDate: 2008-12-22 18:07:21
Subject: Re: Migration \ OID question

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group