15 #include "storage/fd.h" 16 #include "utils/guc.h" 94 static bool first_time =
true;
99 DefineCustomIntVariable(
"veil.dbs_in_cluster",
100 "The number of databases within the cluster " 101 "that will be using veil (1)",
106 0, NULL, NULL, NULL);
107 DefineCustomIntVariable(
"veil.shared_hash_elems",
108 "The number of entries for shared variables in " 109 "each shared memory context (32)",
114 0, NULL, NULL, NULL);
115 DefineCustomIntVariable(
"veil.shmem_context_size",
116 "Size of each shared memory context",
117 "Size of each shared memory context in bytes. " 118 "This cannot be increased without stopping " 119 "and restarting the database cluster.",
121 4096, 4096, 104857600,
123 0, NULL, NULL, NULL);
135 static bool first_time =
true;
140 dbs_in_cluster = atoi(GetConfigOption(
"veil.dbs_in_cluster", FALSE, FALSE));
static int dbs_in_cluster
The number of databases within the db cluster that will use veil.
int veil_dbs_in_cluster()
Return the number of databases, within the database cluster, that will use Veil.
static int shmem_context_size
The size in KBytes, of each of Veil's shared memory contexts.
Provide definitions for all non-local C-callable Veil functions.
Provides version information for veil.
void veil_config_init()
Initialise Veil's use of GUC variables.
static int shared_hash_elems
The number of buckets to create in the hash for shared variables.
int veil_shmem_context_size()
Return the amount of shared memory to be requested for each of the two shared memory contexts...
void veil_load_config()
Retrieve Veil's GUC variables for this session.
int veil_shared_hash_elems()
Return the number of entries that should be allocated for shared variables in our shared hashes...