Re: PL/Python SD dict wiped?

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Ken Huffman <KHuffman(at)westell(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PL/Python SD dict wiped?
Date: 2018-01-08 19:24:42
Message-ID: 7f2dfe82-a8cc-8e5b-e9cf-5c625b39b41b@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-01-08 19:39:24 Re: [HACKERS] VACUUM and ANALYZE disagreeing on what reltuples means
Previous Message Tom Lane 2018-01-08 19:18:11 Re: Parallel append plan instability/randomness