Re: [HACKERS] Extension upgrade and GUCs

2015-08-20 Thread Paul Ramsey
On August 20, 2015 at 7:21:10 AM, Tom Lane (t...@sss.pgh.pa.us(mailto:t...@sss.pgh.pa.us)) wrote: > I'm not sure that the situation you describe can be expected to work > reliably; the problems are far wider than just GUC variables. If two > different .so's are exposing broadly the same set of C

Re: [HACKERS] Extension upgrade and GUCs

2015-08-20 Thread Tom Lane
Paul Ramsey writes: > On August 20, 2015 at 2:17:31 AM, Simon Riggs > (si...@2ndquadrant.com(mailto:si...@2ndquadrant.com)) wrote: >> Sounds like we need RedefineCustomStringVariable()  > Yes, if that had existed we would not have had any problems (as long as it > delegated back to Define..()

Re: [HACKERS] Extension upgrade and GUCs

2015-08-20 Thread Simon Riggs
On 20 August 2015 at 13:21, Paul Ramsey wrote: > On August 20, 2015 at 2:17:31 AM, Simon Riggs (si...@2ndquadrant.com > (mailto:si...@2ndquadrant.com)) wrote: > > > On 18 August 2015 at 21:03, Paul Ramsey wrote: > > > > > So I need a way to either (a) notice when I already have a (old) copy > > >

Re: [HACKERS] Extension upgrade and GUCs

2015-08-20 Thread Paul Ramsey
On August 20, 2015 at 2:17:31 AM, Simon Riggs (si...@2ndquadrant.com(mailto:si...@2ndquadrant.com)) wrote: > On 18 August 2015 at 21:03, Paul Ramsey wrote: > > > So I need a way to either (a) notice when I already have a (old) copy > > of the library loaded and avoid trying to setup the GUC in

Re: [HACKERS] Extension upgrade and GUCs

2015-08-20 Thread Simon Riggs
On 18 August 2015 at 21:03, Paul Ramsey wrote: > So I need a way to either (a) notice when I already have a (old) copy > of the library loaded and avoid trying to setup the GUC in that case > or (b) set-up the GUC in a somewhat less brittle way than > DefineCustomStringVariable() allows, somethi

[HACKERS] Extension upgrade and GUCs

2015-08-18 Thread Paul Ramsey
Hi hackers, I've been wrestling with this one for a while and gone down a couple blind alleys, so time to ask the experts. PostGIS has a couple things different from the extensions that live in contrib, - it has some GUCs - it has a versioned loadable library (postgis-2.1.so, postgis-2.2.so, etc)