I am working with postgres 9.3 and Python 2.7.
In a plpython function, I want to execute a query that returns a boolean. How can I get the boolean result?
For example:
result = plpy.execute('select 1<2 ')
I am working with postgres 9.3 and Python 2.7.
In a plpython function, I want to execute a query that returns a boolean. How can I get the boolean result?
For example:
result = plpy.execute('select 1<2 ')
I figured out how to do this: