Re: PL/Python SD dict wiped? - Mailing list pgsql-hackers

From David Gould
Subject Re: PL/Python SD dict wiped?
Date
Msg-id 20180109022842.108f58be@engels
Whole thread Raw
In response to Re: PL/Python SD dict wiped?  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
On Mon, 8 Jan 2018 14:24:42 -0500
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:

> 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.

Or, given that you have a postgres connection, you could use a table.

-dg

-- 
David Gould                                    daveg@sonic.net
If simplicity worked, the world would be overrun with insects.


pgsql-hackers by date:

Previous
From: Rajkumar Raghuwanshi
Date:
Subject: Multi-level hierarchy with parallel append can lead to an extra subplan.
Next
From: Amit Khandekar
Date:
Subject: Re: Multi-level hierarchy with parallel append can lead to an extra subplan.