Search Postgresql Archives

Re: LOADing functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrew Becker <acbecker@xxxxxxxxx> writes:
> Hi - I seem to be unable to reLOAD a shared library within the session 
> that I LOADed it.

Nope, you can't, there's no such functionality.

> Hints as to what is going wrong here?  I would certainly expect to be 
> able to re-load a shared library while debugging my UDF.

That would require being able to unload it, which is an operation fraught
with hazards.  We used to allow that, but gave it up after observing that
practically every extant extension could be made to crash on unload.
There is for instance no safe way to get out of a function hook --- the
code pattern you may have seen of restoring the prior value is wrong and
unsafe, because it doesn't account for some other extension having plugged
into the hook after you.  You'd leave that other extension kneecapped,
with some of its hook callbacks disabled but others perhaps not.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux