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