{"id":80,"date":"2010-09-07T16:03:48","date_gmt":"2010-09-07T23:03:48","guid":{"rendered":"http:\/\/shivdev.com\/blog\/2010\/09\/07\/postgresql-error-current-transaction-is-aborted-commands-ignored-until-end-of-transaction-block\/"},"modified":"2010-09-07T16:03:48","modified_gmt":"2010-09-07T23:03:48","slug":"postgresql-error-current-transaction-is-aborted-commands-ignored-until-end-of-transaction-block","status":"publish","type":"post","link":"http:\/\/shivdev.com\/blog\/2010\/09\/07\/postgresql-error-current-transaction-is-aborted-commands-ignored-until-end-of-transaction-block\/","title":{"rendered":"PostgreSQL ERROR: current transaction is aborted, commands ignored until end of transaction block"},"content":{"rendered":"<p>After opening up PostgreSQL to accept connections from the outside world and using SQLExplorer as a client, I noticed that if there was a SQL Syntax error or any problem with a SQL, any following SQL statement would come back with<\/p>\n<blockquote><p>ERROR: current transaction is aborted, commands ignored until end of transaction block<\/p><\/blockquote>\n<p>Simple fix for me was to rollback the transaction<\/p>\n<blockquote><p><strong>rollback<\/strong><\/p><\/blockquote>\n<p>It&#8217;s likely that my client was somehow starting a BEGIN transaction and since the query wasn&#8217;t valid, the transaction didn&#8217;t end so had to manually rollback.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After opening up PostgreSQL to accept connections from the outside world and using SQLExplorer as a client, I noticed that if there was a SQL Syntax error or any problem with a SQL, any following SQL statement would come back with ERROR: current transaction is aborted, commands ignored until end of transaction block Simple fix [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[],"_links":{"self":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/80"}],"collection":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/comments?post=80"}],"version-history":[{"count":0,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/80\/revisions"}],"wp:attachment":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/media?parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/categories?post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/tags?post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}