Re: SIGSEGV taken on 8.1 during dump/reload - Mailing list pgsql-hackers

From Tom Lane
Subject Re: SIGSEGV taken on 8.1 during dump/reload
Date
Msg-id 27906.1131811784@sss.pgh.pa.us
Whole thread Raw
In response to Re: SIGSEGV taken on 8.1 during dump/reload  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: SIGSEGV taken on 8.1 during dump/reload
List pgsql-hackers
I thought of an alternative approach to the library version problem:
what about taking a leaf from the usual shared library versioning
approach, ie, put the version number into the library file name?
So instead of loading, say, "plpgsql.so" we'd insist on loading
"plpgsql.so.8.2".

This would avoid Peter's objection that the dynamic linker might give
a hard-to-interpret error message, and it'd not require assuming that
the library uses V1 function call convention either.

On the other hand, it'd be relatively easy for clueless lusers to
defeat; I can readily imagine someone copying foo.so.8.2 to foo.so.8.3
when the backend complained that it couldn't find the latter.  So
maybe it's not what we want.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to find a number of connections
Next
From: Martijn van Oosterhout
Date:
Subject: Re: SIGSEGV taken on 8.1 during dump/reload