Re: Whan is it safe to mark a function PARALLEL SAFE?

From: Jim Finnerty <jfinnert(at)amazon(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Whan is it safe to mark a function PARALLEL SAFE?
Date: 2019-09-09 12:42:41
Message-ID: 1568032961628-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dan Livingston 2019-09-09 13:08:35 Re: database "cdf_100_1313" does not exist
Previous Message nikhil raj 2019-09-09 11:58:06 Re: database "cdf_100_1313" does not exist