Use larger segment file names for pg_notify
Alexander Korotkov <akorotkov@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/config.sgml | modified | +16 −0 |
| doc/src/sgml/ref/listen.sgml | modified | +1 −0 |
| doc/src/sgml/ref/notify.sgml | modified | +1 −0 |
| src/backend/commands/async.c | modified | +30 −92 |
| src/backend/utils/misc/guc_tables.c | modified | +10 −0 |
| src/backend/utils/misc/postgresql.conf.sample | modified | +3 −0 |
| src/include/commands/async.h | modified | +1 −0 |
Documentation touched
Discussion
- XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15) 149 messages · 2022-03-17 → 2024-08-19
- Add 64-bit XIDs into PostgreSQL 15 228 messages · 2021-12-30 → 2026-05-04