103 "Enables automatic summarization on this BRIN index",
111 "autovacuum_enabled",
112 "Enables autovacuum in this relation",
120 "user_catalog_table",
121 "Declare a table as an additional catalog table, e.g. for the purpose of logical replication",
130 "Enables \"fast update\" feature for this GIN index",
139 "View acts as a row security barrier",
148 "Privileges on underlying relations are checked as the invoking user, not the view owner",
157 "Enables \"deduplicate items\" feature for this btree index",
173 "Enables vacuum to truncate empty pages at the end of this table",
191 "Packs table pages only to this percentage",
201 "Packs btree index pages only to this percentage",
211 "Packs hash index pages only to this percentage",
221 "Packs gist index pages only to this percentage",
231 "Packs spgist index pages only to this percentage",
240 "autovacuum_vacuum_threshold",
241 "Minimum number of tuple updates or deletes prior to vacuum",
249 "autovacuum_vacuum_max_threshold",
250 "Maximum number of tuple updates or deletes prior to vacuum",
258 "autovacuum_vacuum_insert_threshold",
259 "Minimum number of tuple inserts prior to vacuum, or -1 to disable insert vacuums",
267 "autovacuum_analyze_threshold",
268 "Minimum number of tuple inserts, updates or deletes prior to analyze",
276 "autovacuum_vacuum_cost_limit",
277 "Vacuum cost amount available before napping, for autovacuum",
285 "autovacuum_freeze_min_age",
286 "Minimum age at which VACUUM should freeze a table row, for autovacuum",
294 "autovacuum_multixact_freeze_min_age",
295 "Minimum multixact age at which VACUUM should freeze a row multixact's, for autovacuum",
303 "autovacuum_freeze_max_age",
304 "Age at which to autovacuum a table to prevent transaction ID wraparound",
308 -1, 100000, 2000000000
312 "autovacuum_multixact_freeze_max_age",
313 "Multixact age at which to autovacuum a table to prevent multixact wraparound",
317 -1, 10000, 2000000000
321 "autovacuum_freeze_table_age",
322 "Age at which VACUUM should perform a full table sweep to freeze row versions",
329 "autovacuum_multixact_freeze_table_age",
330 "Age of multixact at which VACUUM should perform a full table sweep to freeze row versions",
337 "log_autovacuum_min_duration",
338 "Sets the minimum execution time above which vacuum actions by autovacuum will be logged",
346 "log_autoanalyze_min_duration",
347 "Sets the minimum execution time above which analyze actions by autovacuum will be logged",
355 "toast_tuple_target",
356 "Sets the target tuple length at which external columns will be toasted",
365 "Number of pages that each page range covers in a BRIN index",
372 "gin_pending_list_limit",
373 "Maximum size of the pending list for this GIN index, in kilobytes.",
381 "effective_io_concurrency",
382 "Number of simultaneous requests that can be handled efficiently by the disk subsystem.",
390 "maintenance_io_concurrency",
391 "Number of simultaneous requests that can be handled efficiently by the disk subsystem for maintenance work.",
400 "Number of parallel processes that can be used per executor node for this relation.",
415 "autovacuum_vacuum_cost_delay",
416 "Vacuum cost delay in milliseconds, for autovacuum",
424 "autovacuum_vacuum_scale_factor",
425 "Number of tuple updates or deletes prior to vacuum as a fraction of reltuples",
433 "autovacuum_vacuum_insert_scale_factor",
434 "Number of tuple inserts prior to vacuum as a fraction of reltuples",
442 "autovacuum_analyze_scale_factor",
443 "Number of tuple inserts, updates or deletes prior to analyze as a fraction of reltuples",
451 "vacuum_max_eager_freeze_failure_rate",
452 "Fraction of pages in a relation vacuum can scan and fail to freeze before disabling eager scanning.",
462 "Sets the planner's estimate of the cost of a sequentially fetched disk page.",
471 "Sets the planner's estimate of the cost of a nonsequentially fetched disk page.",
480 "Sets the planner's estimate of the number of distinct values appearing in a column (excluding child relations).",
488 "n_distinct_inherited",
489 "Sets the planner's estimate of the number of distinct values appearing in a column (including child relations).",
497 "vacuum_cleanup_index_scale_factor",
498 "Deprecated B-Tree parameter.",
520 {(
const char *)
NULL}
529 {(
const char *)
NULL}
538 {(
const char *)
NULL}
545 "vacuum_index_cleanup",
546 "Controls index vacuuming and index cleanup",
552 gettext_noop(
"Valid values are \"on\", \"off\", and \"auto\".")
557 "Enables buffering build for this GiST index",
563 gettext_noop(
"Valid values are \"on\", \"off\", and \"auto\".")
568 "View has WITH CHECK OPTION defined (local or cascaded).",
574 gettext_noop(
"Valid values are \"local\" and \"cascaded\".")
602#define GET_STRING_RELOPTION_LEN(option) \
603 ((option).isset ? strlen((option).string_val) : \
604 ((relopt_string *) (option).gen)->default_len)
737 errmsg(
"user-defined relation parameter types limit exceeded")));
786 relopts->relopt_struct_size = relopt_struct_size;
884 bool default_val,
LOCKMODE lockmode)
889 name, desc, lockmode);
901 bool default_val,
LOCKMODE lockmode)
904 default_val, lockmode);
917 const char *desc,
bool default_val,
int offset)
966 const char *desc,
int offset)
988 name, desc, lockmode);
1019 const char *desc,
int default_val,
int min_val,
1023 name, desc, default_val,
1041 name, desc, lockmode);
1073 const char *desc,
double default_val,
1091 const char *detailmsg,
LOCKMODE lockmode)
1096 name, desc, lockmode);
1120 const char *detailmsg,
LOCKMODE lockmode)
1123 members, default_val,
1124 detailmsg, lockmode);
1138 int default_val,
const char *detailmsg,
int offset)
1142 members, default_val,
1154 const char *default_val,
1166 name, desc, lockmode);
1219 const char *desc,
const char *default_val,
1331 errmsg(
"RESET must not include values for parameters")));
1364 errmsg(
"unrecognized parameter namespace \"%s\"",
1394 errmsg(
"invalid option name \"%s\": must not contain \"=\"",
1409 errmsg(
"tables declared WITH OIDS are not supported")));
1577 errmsg(
"unrecognized parameter \"%s\"", s)));
1634 reloptions[
j].
isset =
false;
1689 errmsg(
"parameter \"%s\" specified more than once",
1697 switch (
option->gen->type)
1705 errmsg(
"invalid value for boolean option \"%s\": %s",
1719 errmsg(
"invalid value for boolean option \"%s\": %s",
1731 errmsg(
"invalid value for integer option \"%s\": %s",
1737 errmsg(
"value %s out of bounds for option \"%s\"",
1739 errdetail(
"Valid values are between \"%d\" and \"%d\".",
1751 errmsg(
"invalid value for floating point option \"%s\": %s",
1757 errmsg(
"value %s out of bounds for option \"%s\"",
1759 errdetail(
"Valid values are between \"%f\" and \"%f\".",
1781 errmsg(
"invalid value for enum option \"%s\": %s",
1915 string_val =
options[
i].string_val;
1925 (
char *)
rdopts + offset);
1935 else if (string_val ==
NULL)
1941 offset +=
strlen(string_val) + 1;
1945 elog(
ERROR,
"unsupported reloption type %d",
1954 elog(
ERROR,
"reloption \"%s\" not found in parse table",
2043 Size relopt_struct_size,
2122 errmsg(
"cannot specify storage parameters for a partitioned table"),
2123 errhint(
"Specify storage parameters for its leaf partitions instead."));
2164 rdopts->fillfactor = 100;
2165 rdopts->autovacuum.analyze_threshold = -1;
2166 rdopts->autovacuum.analyze_scale_factor = -1;
2195 return amoptions(reloptions,
validate);
2263 if (lockmode <
relOpts[
i]->lockmode)
bytea *(* amoptions_function)(Datum reloptions, bool validate)
#define DatumGetArrayTypeP(X)
ArrayBuildState * accumArrayResult(ArrayBuildState *astate, Datum dvalue, bool disnull, Oid element_type, MemoryContext rcontext)
void deconstruct_array_builtin(const ArrayType *array, Oid elmtype, Datum **elemsp, bool **nullsp, int *nelemsp)
Datum makeArrayResult(ArrayBuildState *astate, MemoryContext rcontext)
static bool validate(Port *port, const char *auth)
bool parse_bool(const char *value, bool *result)
static Datum values[MAXATTR]
int maintenance_io_concurrency
int effective_io_concurrency
#define MAX_IO_CONCURRENCY
#define TextDatumGetCString(d)
#define Assert(condition)
char * defGetString(DefElem *def)
bool defGetBoolean(DefElem *def)
int errdetail_internal(const char *fmt,...)
int errdetail(const char *fmt,...)
int errhint(const char *fmt,...)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define palloc_object(type)
#define palloc_array(type, count)
@ GIST_OPTION_BUFFERING_OFF
@ GIST_OPTION_BUFFERING_AUTO
@ GIST_OPTION_BUFFERING_ON
#define GIST_MIN_FILLFACTOR
#define GIST_DEFAULT_FILLFACTOR
bool parse_int(const char *value, int *result, int flags, const char **hintmsg)
bool parse_real(const char *value, double *result, int flags, const char **hintmsg)
#define HASH_DEFAULT_FILLFACTOR
#define HASH_MIN_FILLFACTOR
#define TOAST_TUPLE_TARGET
#define TOAST_TUPLE_TARGET_MAIN
static void * GETSTRUCT(const HeapTupleData *tuple)
static Datum fastgetattr(HeapTuple tup, int attnum, TupleDesc tupleDesc, bool *isnull)
List * lappend(List *list, void *datum)
bool DoLockModesConflict(LOCKMODE mode1, LOCKMODE mode2)
#define AccessExclusiveLock
#define ShareUpdateExclusiveLock
DefElem * makeDefElem(char *name, Node *arg, int location)
char * MemoryContextStrdup(MemoryContext context, const char *string)
void * MemoryContextAlloc(MemoryContext context, Size size)
char * pstrdup(const char *in)
void * repalloc(void *pointer, Size size)
void pfree(void *pointer)
void * palloc0(Size size)
MemoryContext TopMemoryContext
MemoryContext CurrentMemoryContext
#define BTREE_MIN_FILLFACTOR
#define BTREE_DEFAULT_FILLFACTOR
static MemoryContext MemoryContextSwitchTo(MemoryContext context)
static AmcheckOptions opts
FormData_pg_class * Form_pg_class
static int list_length(const List *l)
int pg_strcasecmp(const char *s1, const char *s2)
static Datum PointerGetDatum(const void *X)
static Pointer DatumGetPointer(Datum X)
#define HEAP_MIN_FILLFACTOR
@ VIEW_OPTION_CHECK_OPTION_NOT_SET
@ VIEW_OPTION_CHECK_OPTION_LOCAL
@ VIEW_OPTION_CHECK_OPTION_CASCADED
#define HEAP_DEFAULT_FILLFACTOR
@ STDRD_OPTION_VACUUM_INDEX_CLEANUP_AUTO
@ STDRD_OPTION_VACUUM_INDEX_CLEANUP_OFF
@ STDRD_OPTION_VACUUM_INDEX_CLEANUP_ON
static relopt_string * init_string_reloption(bits32 kinds, const char *name, const char *desc, const char *default_val, validate_string_relopt validator, fill_string_relopt filler, LOCKMODE lockmode)
static int num_custom_options
void add_local_string_reloption(local_relopts *relopts, const char *name, const char *desc, const char *default_val, validate_string_relopt validator, fill_string_relopt filler, int offset)
static relopt_real realRelOpts[]
void add_int_reloption(bits32 kinds, const char *name, const char *desc, int default_val, int min_val, int max_val, LOCKMODE lockmode)
static relopt_enum_elt_def gistBufferingOptValues[]
bytea * default_reloptions(Datum reloptions, bool validate, relopt_kind kind)
static relopt_value * parseLocalRelOptions(local_relopts *relopts, Datum options, bool validate)
bytea * tablespace_reloptions(Datum reloptions, bool validate)
static relopt_enum_elt_def StdRdOptIndexCleanupValues[]
#define GET_STRING_RELOPTION_LEN(option)
void add_string_reloption(bits32 kinds, const char *name, const char *desc, const char *default_val, validate_string_relopt validator, LOCKMODE lockmode)
List * untransformRelOptions(Datum options)
static relopt_int intRelOpts[]
static relopt_enum enumRelOpts[]
static void parse_one_reloption(relopt_value *option, char *text_str, int text_len, bool validate)
static relopt_string stringRelOpts[]
bytea * view_reloptions(Datum reloptions, bool validate)
static relopt_int * init_int_reloption(bits32 kinds, const char *name, const char *desc, int default_val, int min_val, int max_val, LOCKMODE lockmode)
bytea * index_reloptions(amoptions_function amoptions, Datum reloptions, bool validate)
void add_enum_reloption(bits32 kinds, const char *name, const char *desc, relopt_enum_elt_def *members, int default_val, const char *detailmsg, LOCKMODE lockmode)
void * build_reloptions(Datum reloptions, bool validate, relopt_kind kind, Size relopt_struct_size, const relopt_parse_elt *relopt_elems, int num_relopt_elems)
bytea * partitioned_table_reloptions(Datum reloptions, bool validate)
void add_real_reloption(bits32 kinds, const char *name, const char *desc, double default_val, double min_val, double max_val, LOCKMODE lockmode)
void add_local_bool_reloption(local_relopts *relopts, const char *name, const char *desc, bool default_val, int offset)
void init_local_reloptions(local_relopts *relopts, Size relopt_struct_size)
static relopt_enum_elt_def viewCheckOptValues[]
void add_local_real_reloption(local_relopts *relopts, const char *name, const char *desc, double default_val, double min_val, double max_val, int offset)
static void add_reloption(relopt_gen *newoption)
static void add_local_reloption(local_relopts *relopts, relopt_gen *newoption, int offset)
void add_bool_reloption(bits32 kinds, const char *name, const char *desc, bool default_val, LOCKMODE lockmode)
Datum transformRelOptions(Datum oldOptions, List *defList, const char *nameSpace, const char *const validnsps[], bool acceptOidsOff, bool isReset)
void add_local_enum_reloption(local_relopts *relopts, const char *name, const char *desc, relopt_enum_elt_def *members, int default_val, const char *detailmsg, int offset)
bytea * extractRelOptions(HeapTuple tuple, TupleDesc tupdesc, amoptions_function amoptions)
static void parseRelOptionsInternal(Datum options, bool validate, relopt_value *reloptions, int numoptions)
static void fillRelOptions(void *rdopts, Size basesize, relopt_value *options, int numoptions, bool validate, const relopt_parse_elt *elems, int numelems)
static relopt_enum * init_enum_reloption(bits32 kinds, const char *name, const char *desc, relopt_enum_elt_def *members, int default_val, const char *detailmsg, LOCKMODE lockmode)
static void initialize_reloptions(void)
relopt_kind add_reloption_kind(void)
void * build_local_reloptions(local_relopts *relopts, Datum options, bool validate)
void add_ternary_reloption(bits32 kinds, const char *name, const char *desc, LOCKMODE lockmode)
void register_reloptions_validator(local_relopts *relopts, relopts_validator validator)
static bool need_initialization
static relopt_value * parseRelOptions(Datum options, bool validate, relopt_kind kind, int *numrelopts)
static relopt_bool * init_bool_reloption(bits32 kinds, const char *name, const char *desc, bool default_val, LOCKMODE lockmode)
static relopt_gen ** relOpts
static relopt_gen ** custom_options
LOCKMODE AlterTableGetRelOptionsLockLevel(List *defList)
static relopt_real * init_real_reloption(bits32 kinds, const char *name, const char *desc, double default_val, double min_val, double max_val, LOCKMODE lockmode)
bytea * attribute_reloptions(Datum reloptions, bool validate)
void add_local_ternary_reloption(local_relopts *relopts, const char *name, const char *desc, int offset)
static relopt_gen * allocate_reloption(bits32 kinds, int type, const char *name, const char *desc, LOCKMODE lockmode)
static relopt_bool boolRelOpts[]
static relopt_ternary * init_ternary_reloption(bits32 kinds, const char *name, const char *desc, LOCKMODE lockmode)
void add_local_int_reloption(local_relopts *relopts, const char *name, const char *desc, int default_val, int min_val, int max_val, int offset)
static void * allocateReloptStruct(Size base, relopt_value *options, int numoptions)
static bits32 last_assigned_kind
bytea * heap_reloptions(char relkind, Datum reloptions, bool validate)
static relopt_ternary ternaryRelOpts[]
Size(* fill_string_relopt)(const char *value, void *ptr)
@ RELOPT_KIND_LAST_DEFAULT
void(* validate_string_relopt)(const char *value)
void(* relopts_validator)(void *parsed_options, relopt_value *vals, int nvals)
#define SPGIST_DEFAULT_FILLFACTOR
#define SPGIST_MIN_FILLFACTOR
double vacuum_max_eager_freeze_failure_rate
String * makeString(char *str)
static Size VARSIZE(const void *PTR)
static char * VARDATA(const void *PTR)
static void SET_VARSIZE(void *PTR, Size len)