Re: Trouble using plpgsql after 8.0 install - Mailing list pgsql-admin

From Tom Lane
Subject Re: Trouble using plpgsql after 8.0 install
Date
Msg-id 24900.1109622030@sss.pgh.pa.us
Whole thread Raw
In response to Trouble using plpgsql after 8.0 install  (Aaron Craig <mercutio@pobox.com>)
List pgsql-admin
Aaron Craig <mercutio@pobox.com> writes:
> I get this result:
> ERROR:  could not load library "/usr/lib/pgsql/plpgsql.so":
> /usr/lib/pgsql/plpgsql.so: undefined symbol: PG_exception_stack

This sounds like you are trying to load a newer plpgsql.so into an older
backend.  In the context of the update process you describe, I can't
help wondering if you remembered to stop the old postmaster and start a
new one.  You could still be talking to the running old postmaster
despite having deleted all its executable files from underneath it.

(Recent RPMs include an auto postmaster stop when uninstalling the server
package, but that wasn't always there.)

Note that another important step missing from your description was
dumping the old database so you could load it into the new postmaster.
It'd be a good idea to run pg_dumpall before trying to shut down the
old postmaster --- I'm not 100% sure that will work, but if it does,
it will save you having to reinstall the old RPMs in order to dump your
data.

            regards, tom lane

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: PostgreSQL 8.0.1 compile success Regression Fails
Next
From: "Margabandhu De.Sambath"
Date:
Subject: unsubscribe