forked from greenplum-db/diskquota-archive
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reposition PostgreSQL GUC declaration
GUC variables must be declared before any other actions are made by diskquota. In particular, the value of 'diskquota_max_active_tables' (GUC 'diskquota.max_active_tables') is used in 'DiskQuotaShmemSize()'. The late GUC variable declaration caused this variable to be '0', thus leading to allocation of insufficient amount of memory. Fix this: 1. Move GUC declarations to a separate static function 2. Call this function before any other actions performed in _PG_init()
- Loading branch information
Ivan Leskin
committed
Sep 4, 2020
1 parent
362fb52
commit a112e21
Showing
1 changed file
with
48 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters