I'm writing a series of plpythonu functions which share a few common bits of code. I'd like to package the shared code into a separate module for ease of maintenance. Is there an easy way to call my custom module from plpythonu?
I can't guarantee access to locations in Python's path so dropping it in a folder on the path may not work.
These are all part of a PostgreSQL extension so ideally I'd install the helper Python module along with the other extension files.