Re: PL/Python SD dict wiped?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ken Huffman <KHuffman(at)westell(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PL/Python SD dict wiped?
Date: 2018-01-08 15:23:07
Message-ID: 30346.1515424987@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ken Huffman <KHuffman(at)westell(dot)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 to run 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2018-01-08 15:43:00 Re: Invalid pg_upgrade error message during live check
Previous Message Ken Huffman 2018-01-08 15:11:02 PL/Python SD dict wiped?