> Here's our current procedure: > 1) Build new .so files > 2) Put new .so files in "version directory" (for example > /path/to/funcs/1.23.1/ where old version was /path/to/funcs/1.23.0/) > 3) Run "ALTER DATABASE <db_name> SET dynamic_library_path TO > '/path/to/funcs/1.23.1:$libdir';"
> Is that an ok operation to perform on a live database? Will existing > connections handle that without issues? (I'm ok if they still keep using > the old .so files until the connection is closed and re-opened)
That should be safe enough, I'd think (noting that already-launched sessions would keep using the old libraries, since ALTER DATABASE settings are only adopted at session start).
Ok, good to hear.
What I'm wondering about is if someone made an ABI-incompatible change to one of the functions provided by the libraries, and adjusted their SQL declarations to match. Then you'd had problems with some sessions seeing new SQL declarations and old libraries.
To date we've never done such a thing, but that's good to keep in mind and if we ever do that, then we'll be sure to handle it in a more safe manner.