Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> You are asking if a funciton itself might want to set query cancel and
> catch the cancel and do something else?
Exactly. There's a proof-of-concept test at the bottom of
regress/sql/plpgsql.sql, wherein a function gets control back
from a query that would have run for an unreasonably long time.
regards, tom lane
In response to
pgsql-hackers by date
|Next:||From: Bruce Momjian||Date: 2004-08-01 01:27:17|
|Subject: Re: Version Numbering -- The great debate|
|Previous:||From: Bruce Momjian||Date: 2004-08-01 01:20:25|
|Subject: Re: Trapping QUERY_CANCELED: yes, no, maybe?|