Ken Huffman <[email protected]> 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
