aboutsummaryrefslogtreecommitdiff
path: root/src/include/commands/async.h
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2023-11-29 01:41:48 +0200
committerAlexander Korotkov <akorotkov@postgresql.org>2023-11-29 01:41:48 +0200
commit2cdf131c46e631addfc386f6106e52a1b8cc3a70 (patch)
tree5faf24c559be725f691b135118f20988f71c6bc1 /src/include/commands/async.h
parent4ed8f0913bfdb5f3551de3c27fc2c2e880abc5a2 (diff)
downloadpostgresql-2cdf131c46e631addfc386f6106e52a1b8cc3a70.tar.gz
postgresql-2cdf131c46e631addfc386f6106e52a1b8cc3a70.zip
Use larger segment file names for pg_notify
This avoids the wraparound in async.c and removes the corresponding code complexity. The maximum amount of allocated SLRU pages for NOTIFY / LISTEN queue is now determined by the max_notify_queue_pages GUC. The default value is 1048576. It allows to consume up to 8 GB of disk space which is exactly the limit we had previously. Author: Maxim Orlov, Aleksander Alekseev, Alexander Korotkov, Teodor Sigaev Author: Nikita Glukhov, Pavel Borisov, Yura Sokolov Reviewed-by: Jacob Champion, Heikki Linnakangas, Alexander Korotkov Reviewed-by: Japin Li, Pavel Borisov, Tom Lane, Peter Eisentraut, Andres Freund Reviewed-by: Andrey Borodin, Dilip Kumar, Aleksander Alekseev Discussion: https://postgr.es/m/CACG%3DezZe1NQSCnfHOr78AtAZxJZeCvxrts0ygrxYwe%3DpyyjVWA%40mail.gmail.com Discussion: https://postgr.es/m/CAJ7c6TPDOYBYrnCAeyndkBktO0WG2xSdYduTF0nxq%2BvfkmTF5Q%40mail.gmail.com
Diffstat (limited to 'src/include/commands/async.h')
-rw-r--r--src/include/commands/async.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/commands/async.h b/src/include/commands/async.h
index 02da6ba7e11..a44472b3526 100644
--- a/src/include/commands/async.h
+++ b/src/include/commands/async.h
@@ -21,6 +21,7 @@
#define NUM_NOTIFY_BUFFERS 8
extern PGDLLIMPORT bool Trace_notify;
+extern PGDLLIMPORT int max_notify_queue_pages;
extern PGDLLIMPORT volatile sig_atomic_t notifyInterruptPending;
extern Size AsyncShmemSize(void);