On 1/8/18 11:59, Ken Huffman wrote:
> I'm fine with per-session initializing of prepared statements, but is
> there PL/Python mechanism that spans sessions to minimize ConfigParser
> calls?
Nothing built-in. You would have to use a separate external storage
mechanism of some kind. It could be a file, separately managed shared
memory, or perhaps something like memcached.
However, if this is the problem, then you might want to figure out a way
to keep your connections open longer, such as by using a connection pool.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services