Skip to content

Commit 13fe298

Browse files
Change commit_delay to be SUSET for 9.3+
Prior to 9.3 the commit_delay affected only the current user, whereas now only the group leader waits while holding the WALWriteLock. Deliberate or accidental settings to a poor value could seriously degrade performance for all users. Privileges may be delegated by SECURITY DEFINER functions for anyone that needs per-user settings in real situations. Request for change from Peter Geoghegan
1 parent e690b95 commit 13fe298

File tree

1 file changed

+1
-1
lines changed
  • src/backend/utils/misc

1 file changed

+1
-1
lines changed

src/backend/utils/misc/guc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2042,7 +2042,7 @@ static struct config_int ConfigureNamesInt[] =
20422042
},
20432043

20442044
{
2045-
{"commit_delay", PGC_USERSET, WAL_SETTINGS,
2045+
{"commit_delay", PGC_SUSET, WAL_SETTINGS,
20462046
gettext_noop("Sets the delay in microseconds between transaction commit and "
20472047
"flushing WAL to disk."),
20482048
NULL

0 commit comments

Comments
 (0)