python-postgres / be

pg-python: Execute Python 3 code from PostgreSQL functions.
Other
5 stars 2 forks source link

reload $DATADIR/init.py on HUP? #16

Closed jwp closed 14 years ago

jwp commented 14 years ago

This is something that should happen when shared lib preloading is applied to python.so.

The problem is that the user may install new Python modules that were imported by init.py. When this happens the backend will need to be completely restarted in order to use the new modules. Only requiring a HUP would be preferable.

jwp commented 14 years ago

Some other means to signal an init.py reload would be better. HUP means reload PG config, let's not try to change that.

jwp commented 14 years ago

Yeah, we'd need to find a better way to signal init.py reload.

jwp commented 14 years ago

close you