Skip to content

Commit 8f045e2

Browse files
committed
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
1 parent 3c60d0f commit 8f045e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/catalog/system_views.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ CREATE OR REPLACE FUNCTION pg_stop_backup (
10301030
CREATE OR REPLACE FUNCTION
10311031
pg_promote(wait boolean DEFAULT true, wait_seconds integer DEFAULT 60)
10321032
RETURNS boolean STRICT VOLATILE LANGUAGE INTERNAL AS 'pg_promote'
1033-
PARALLEL RESTRICTED;
1033+
PARALLEL SAFE;
10341034

10351035
-- legacy definition for compatibility with 9.3
10361036
CREATE OR REPLACE FUNCTION

src/include/catalog/catversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/* yyyymmddN */
56-
#define CATALOG_VERSION_NO 201811051
56+
#define CATALOG_VERSION_NO 201811061
5757

5858
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy