Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- ----------------------------------------------------------------------
-- QDB-1513 P4-2: the read scratch arena GUC.  The server-level behaviour
-- (offload vs inline, bit-identity, truncation) needs a custom cluster
-- configuration and lives in t/007_cfs_read_scratch.pl; this file pins
-- the pg_settings contract of the parameter itself, which holds for any
-- io_method.
-- ----------------------------------------------------------------------
SELECT name, setting, unit, context, vartype, source
  FROM pg_settings WHERE name = 'cfs_read_scratch_mb';
 
SELECT short_desc LIKE '%read scratch arena%' AS documented
  FROM pg_settings WHERE name = 'cfs_read_scratch_mb';
 
-- The bounds must match the postgresql.conf.sample line and the arena
-- sizing: 0 disables, the maximum caps the budget like cfs_map_memory.
SELECT min_val = '0' AND max_val = '1048576' AS bounds
  FROM pg_settings WHERE name = 'cfs_read_scratch_mb';