aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/utils')
-rw-r--r--src/backend/utils/misc/guc_tables.c10
-rw-r--r--src/backend/utils/misc/postgresql.conf.sample3
2 files changed, 13 insertions, 0 deletions
diff --git a/src/backend/utils/misc/guc_tables.c b/src/backend/utils/misc/guc_tables.c
index b764ef69980..5c6f5af8736 100644
--- a/src/backend/utils/misc/guc_tables.c
+++ b/src/backend/utils/misc/guc_tables.c
@@ -2688,6 +2688,16 @@ struct config_int ConfigureNamesInt[] =
},
{
+ {"max_notify_queue_pages", PGC_POSTMASTER, RESOURCES_DISK,
+ gettext_noop("Sets the maximum number of allocated pages for NOTIFY / LISTEN queue."),
+ NULL,
+ },
+ &max_notify_queue_pages,
+ 1048576, 64, INT_MAX,
+ NULL, NULL, NULL
+ },
+
+ {
{"wal_decode_buffer_size", PGC_POSTMASTER, WAL_RECOVERY,
gettext_noop("Buffer size for reading ahead in the WAL during recovery."),
gettext_noop("Maximum distance to read ahead in the WAL to prefetch referenced data blocks."),
diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample
index e48c066a5b1..cf9f283cfee 100644
--- a/src/backend/utils/misc/postgresql.conf.sample
+++ b/src/backend/utils/misc/postgresql.conf.sample
@@ -166,6 +166,9 @@
#temp_file_limit = -1 # limits per-process temp file space
# in kilobytes, or -1 for no limit
+#max_notify_queue_pages = 1048576 # limits the number of SLRU pages allocated
+ # for NOTIFY / LISTEN queue
+
# - Kernel Resources -
#max_files_per_process = 1000 # min 64