Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8f045e2

Browse files
committed
Switch pg_promote to be parallel-safe
pg_promote uses nothing relying on a global state, so it is fine to markit as parallel-safe, conclusion based on a detailed analysis from RobertHaas. This also fixes an inconsistency where pg_proc.dat missed to markthe function with its previous value for proparallel, update which doesnot 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 parent3c60d0f commit8f045e2

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
CREATEOR REPLACE FUNCTION
10311031
pg_promote(waitboolean DEFAULT true, wait_secondsinteger DEFAULT60)
10321032
RETURNSboolean STRICT VOLATILE LANGUAGE INTERNALAS'pg_promote'
1033-
PARALLELRESTRICTED;
1033+
PARALLELSAFE;
10341034

10351035
-- legacy definition for compatibility with 9.3
10361036
CREATEOR 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-
#defineCATALOG_VERSION_NO201811051
56+
#defineCATALOG_VERSION_NO201811061
5757

5858
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp