Re: Whan is it safe to mark a function PARALLEL SAFE? - Mailing list pgsql-general

From Jim Finnerty
Subject Re: Whan is it safe to mark a function PARALLEL SAFE?
Date
Msg-id 1568032961628-0.post@n3.nabble.com
Whole thread Raw
In response to Re: Whan is it safe to mark a function PARALLEL SAFE?  (Peter Geoghegan <pg@bowt.ie>)
List pgsql-general
The scenario is a STABLE function that calls out to an AWS service that
charges micro pennies per row, so periodically inserting
CHECK_FOR_INTERRUPTS() should be able to prevent charges from accumulating
for a  statement that has already failed in another parallel worker.

I think it's safe to declare such functions as PARALLEL SAFE.  Thank you!



-----
Jim Finnerty, AWS, Amazon Aurora PostgreSQL
--
Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html



pgsql-general by date:

Previous
From: nikhil raj
Date:
Subject: Re: database "cdf_100_1313" does not exist
Next
From: Dan Livingston
Date:
Subject: Re: database "cdf_100_1313" does not exist