Created
March 19, 2015 18:01
-
-
Save junosuarez/ee9039874512fd34ea20 to your computer and use it in GitHub Desktop.
log select query in transaction (postgres 9+)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO language plpgsql $$ DECLARE result RECORD; BEGIN | |
select * into result from table limit 1; | |
RAISE NOTICE '%', result; END$$; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment