Skip to content

Instantly share code, notes, and snippets.

@akahn
Created January 4, 2013 19:57
Show Gist options
  • Select an option

  • Save akahn/4455429 to your computer and use it in GitHub Desktop.

Select an option

Save akahn/4455429 to your computer and use it in GitHub Desktop.
>> connection = PGconn.new(...)
>> connection.exec('update foo set bar=true') # long running query
^C^C^C^C^C^C
# Can't cancel the query
>> connection.async_exec('update foo set bar=true') # long running query
^C
>>
# Control is returned to the prompt but query is still executing
@akahn

akahn commented Jan 4, 2013

Copy link
Copy Markdown
Author

This is on MRI 1.9.3 on Linux, btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment