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

From Tom Lane
Subject Re: PL/Python SD dict wiped?
Date
Msg-id 30346.1515424987@sss.pgh.pa.us
Whole thread Raw
In response to PL/Python SD dict wiped?  (Ken Huffman <KHuffman@westell.com>)
Responses RE: PL/Python SD dict wiped?
List pgsql-hackers
Ken Huffman <KHuffman@westell.com> writes:
> But if I quit and restart psql and do a subsequent db update, the SD dict is empty again and the one-time logic has
torun again. What is clearing the dict? Is that expected? 

You've got a new backend process.  That dict (or any other Python state)
is only kept within a session.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Ken Huffman
Date:
Subject: PL/Python SD dict wiped?
Next
From: Robert Haas
Date:
Subject: Re: Invalid pg_upgrade error message during live check