Sample Header Ad - 728x90

plpythonu: Read

1 vote
1 answer
188 views
The application "foo" uses this plpythonu source code to read the custom variable foo.transaction_id. I guess this is way too complicated. How to shorten/simplify below lines? txid_list = list(plpy.execute( '''SELECT current_setting FROM current_setting('foo.transaction_id')''')) txid_str = txid_list ['current_setting'] txid = int(txid_str)
Asked by guettli (1601 rep)
Jan 19, 2018, 09:58 AM
Last activity: Jan 26, 2018, 04:16 PM