Database Reference
In-Depth Information
Here is a sample session using the preceding functions:
hannu=# select capture_stdout(true);
capture_stdout
---------------------
sys.stdout captured
(1 row)
hannu=# DO LANGUAGE plpythonu $$
hannu$# print 'TESTING sys.stdout CAPTURING'
hannu$# import pprint
hannu$# pprint.pprint( {'a':[1,2,3],
'b':[4,5,6]} )
hannu$# $$;
DO
hannu=# select read_stdout();
read_stdout
----------------------------------
TESTING sys.stdout CAPTURING +
{'a': [1, 2, 3], 'b': [4, 5, 6]}+
(1 row)
Search WWH ::




Custom Search