Re: [BUGS] overwriting an existing .so while being used crashes the server process

2012-05-31 Thread Peter Eisentraut
On ons, 2012-05-30 at 23:43 +0200, Tomas Vondra wrote: > On 30.5.2012 23:19, Tom Lane wrote: > > I suspect it depends on how you install the new version of the library, > > too. I would somewhat expect it to work as you're thinking if the > > install consists of "rename old file out of the way, co

Re: [BUGS] overwriting an existing .so while being used crashes the server process

2012-05-30 Thread Tomas Vondra
On 30.5.2012 23:19, Tom Lane wrote: > I suspect it depends on how you install the new version of the library, > too. I would somewhat expect it to work as you're thinking if the > install consists of "rename old file out of the way, copy new file into > place, unlink old file" or equivalent. If y

Re: [BUGS] overwriting an existing .so while being used crashes the server process

2012-05-30 Thread Tom Lane
Tomas Vondra writes: > On 30.5.2012 22:35, Tom Lane wrote: >> Tomas Vondra writes: >>> whenever I run a C-function (part of an .so file) and the file is >>> overwritten, the connection crashes. Tested on 9.1.3 and 9.2-beta1. >> What exactly would you expect Postgres to do about such a thing, any

Re: [BUGS] overwriting an existing .so while being used crashes the server process

2012-05-30 Thread Tomas Vondra
On 30.5.2012 22:35, Tom Lane wrote: > Tomas Vondra writes: >> whenever I run a C-function (part of an .so file) and the file is >> overwritten, the connection crashes. Tested on 9.1.3 and 9.2-beta1. > > "Doctor, it hurts when I do this." > "So don't do that." > > What exactly would you expect Po

Re: [BUGS] overwriting an existing .so while being used crashes the server process

2012-05-30 Thread Tom Lane
Tomas Vondra writes: > whenever I run a C-function (part of an .so file) and the file is > overwritten, the connection crashes. Tested on 9.1.3 and 9.2-beta1. "Doctor, it hurts when I do this." "So don't do that." What exactly would you expect Postgres to do about such a thing, anyway? It has no