Re: Rollback of Query Cancellation - Mailing list pgsql-general

From Abdul Rahman
Subject Re: Rollback of Query Cancellation
Date
Msg-id 195444.15690.qm@web65706.mail.ac4.yahoo.com
Whole thread Raw
In response to Rollback of Query Cancellation  (Abdul Rahman <abr_ora@yahoo.com>)
Responses Re: Rollback of Query Cancellation  (Sim Zacks <sim@compulab.co.il>)
List pgsql-general
Very nice!
Most probably it was waiting for something else. This is the reason the query executed today and clearly showed certain number of rows deleted. But what ELSE?


From: Sim Zacks <sim@compulab.co.il>
To: Abdul Rahman <abr_ora@yahoo.com>
Sent: Wednesday, January 28, 2009 12:08:28 PM
Subject: Re: [GENERAL] Rollback of Query Cancellation

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Its very possible that the reason that the query was because there was a
lock on the table. If you run select * from pg_stat_activity while the
query is running there is a waiting flag that indicates whether your
query is actually being executed or if it is waiting for something else.

Sim

Abdul Rahman wrote:
> Dear All,
>
> Yesterday I canceled a running query because it was taking long time
> (more than 12 minutes) to delete lots of records. Today when I executed
> the same query it hardly took few seconds to finish. It clearly explores
> that PostgreSQL does not perform rollback action. Is it true?
>
> Regards,
> Abdul Rehman.
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmABGwACgkQjDX6szCBa+oOzwCguiRslM90EAKY/wo34htqtXUH
hWIAoLkALRcBYEJ7jW5ordKRX73jqyR9
=TqIi
-----END PGP SIGNATURE-----

pgsql-general by date:

Previous
From: Abdul Rahman
Date:
Subject: Re: Rollback of Query Cancellation
Next
From: Jaime Casanova
Date:
Subject: Re: Rollback of Query Cancellation