pgsql: Switch pg_promote to be parallel-safe

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Switch pg_promote to be parallel-safe
Date: 2018-11-06 05:12:14
Message-ID: E1gJtew-0008Da-4L@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Switch pg_promote to be parallel-safe

pg_promote uses nothing relying on a global state, so it is fine to mark
it as parallel-safe, conclusion based on a detailed analysis from Robert
Haas. This also fixes an inconsistency where pg_proc.dat missed to mark
the function with its previous value for proparallel, update which does
not matter now as the default is used.

Based on a discussion between multiple folks: Laurenz Albe, Robert Haas,
Amit Kapila, Tom Lane and myself.

Discussion: https://postgr.es/m/20181029082530.GL14242@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8f045e242b2308473f5de532590454294e3d5683

Modified Files
--------------
src/backend/catalog/system_views.sql | 2 +-
src/include/catalog/catversion.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2018-11-06 06:05:59 pgsql: Reorganize format options of psql in alphabetical order
Previous Message Thomas Munro 2018-11-06 04:27:06 pgsql: Remove dsm_resize() and dsm_remap().