|
PostgreSQL Source Code git master
|
#include "access/amapi.h"#include "access/htup.h"#include "access/tupdesc.h"#include "nodes/pg_list.h"#include "storage/lock.h"

Go to the source code of this file.
Data Structures | |
| struct | relopt_gen |
| struct | relopt_value |
| struct | relopt_bool |
| struct | relopt_ternary |
| struct | relopt_int |
| struct | relopt_real |
| struct | relopt_enum_elt_def |
| struct | relopt_enum |
| struct | relopt_string |
| struct | relopt_parse_elt |
| struct | local_relopt |
| struct | local_relopts |
Macros | |
| #define | HEAP_RELOPT_NAMESPACES { "toast", NULL } |
| #define | GET_STRING_RELOPTION(optstruct, member) |
Enumerations | |
| enum | relopt_type { RELOPT_TYPE_BOOL , RELOPT_TYPE_TERNARY , RELOPT_TYPE_INT , RELOPT_TYPE_REAL , RELOPT_TYPE_ENUM , RELOPT_TYPE_STRING } |
| enum | relopt_kind { RELOPT_KIND_LOCAL = 0 , RELOPT_KIND_HEAP = (1 << 0) , RELOPT_KIND_TOAST = (1 << 1) , RELOPT_KIND_BTREE = (1 << 2) , RELOPT_KIND_HASH = (1 << 3) , RELOPT_KIND_GIN = (1 << 4) , RELOPT_KIND_GIST = (1 << 5) , RELOPT_KIND_ATTRIBUTE = (1 << 6) , RELOPT_KIND_TABLESPACE = (1 << 7) , RELOPT_KIND_SPGIST = (1 << 8) , RELOPT_KIND_VIEW = (1 << 9) , RELOPT_KIND_BRIN = (1 << 10) , RELOPT_KIND_PARTITIONED = (1 << 11) , RELOPT_KIND_LAST_DEFAULT = RELOPT_KIND_PARTITIONED , RELOPT_KIND_MAX = (1 << 30) } |
Definition at line 62 of file reloptions.h.
Definition at line 142 of file reloptions.h.
| typedef void(* relopts_validator) (void *parsed_options, relopt_value *vals, int nvals) |
Definition at line 145 of file reloptions.h.
Definition at line 141 of file reloptions.h.
Definition at line 40 of file reloptions.h.
| Enumerator | |
|---|---|
| RELOPT_TYPE_BOOL | |
| RELOPT_TYPE_TERNARY | |
| RELOPT_TYPE_INT | |
| RELOPT_TYPE_REAL | |
| RELOPT_TYPE_ENUM | |
| RELOPT_TYPE_STRING | |
Definition at line 29 of file reloptions.h.
|
extern |
Definition at line 900 of file reloptions.c.
References add_reloption(), fb(), init_bool_reloption(), and name.
Referenced by create_reloptions_table().
|
extern |
Definition at line 1118 of file reloptions.c.
References add_reloption(), fb(), init_enum_reloption(), and name.
Referenced by create_reloptions_table().
|
extern |
Definition at line 1001 of file reloptions.c.
References add_reloption(), fb(), init_int_reloption(), max_val, and name.
Referenced by _PG_init(), and create_reloptions_table().
|
extern |
Definition at line 916 of file reloptions.c.
References add_local_reloption(), fb(), init_bool_reloption(), name, and RELOPT_KIND_LOCAL.
|
extern |
Definition at line 1136 of file reloptions.c.
References add_local_reloption(), fb(), init_enum_reloption(), name, and RELOPT_KIND_LOCAL.
|
extern |
Definition at line 1018 of file reloptions.c.
References add_local_reloption(), fb(), init_int_reloption(), max_val, name, and RELOPT_KIND_LOCAL.
Referenced by _ltree_gist_options(), brin_minmax_multi_options(), g_int_options(), g_intbig_options(), ghstore_options(), gtrgm_options(), gtsvector_options(), and ltree_gist_options().
|
extern |
Definition at line 1072 of file reloptions.c.
References add_local_reloption(), fb(), init_real_reloption(), max_val, name, and RELOPT_KIND_LOCAL.
Referenced by brin_bloom_options().
|
extern |
Definition at line 1218 of file reloptions.c.
References add_local_reloption(), fb(), init_string_reloption(), name, and RELOPT_KIND_LOCAL.
|
extern |
Definition at line 965 of file reloptions.c.
References add_local_reloption(), fb(), init_ternary_reloption(), name, and RELOPT_KIND_LOCAL.
|
extern |
Definition at line 1054 of file reloptions.c.
References add_reloption(), fb(), init_real_reloption(), max_val, and name.
Referenced by create_reloptions_table().
|
extern |
Definition at line 731 of file reloptions.c.
References ereport, errcode(), errmsg(), ERROR, fb(), last_assigned_kind, and RELOPT_KIND_MAX.
Referenced by _PG_init(), and create_reloptions_table().
|
extern |
Definition at line 1198 of file reloptions.c.
References add_reloption(), fb(), init_string_reloption(), and name.
Referenced by create_reloptions_table().
|
extern |
Definition at line 947 of file reloptions.c.
References add_reloption(), fb(), init_ternary_reloption(), and name.
Referenced by create_reloptions_table().
Definition at line 2241 of file reloptions.c.
References AccessExclusiveLock, DefElem::defname, fb(), i, initialize_reloptions(), lfirst, relopt_gen::lockmode, name, relopt_gen::namelen, need_initialization, NIL, NoLock, and relOpts.
Referenced by AlterTableGetLockLevel().
Definition at line 2202 of file reloptions.c.
References build_reloptions(), fb(), lengthof, RELOPT_KIND_ATTRIBUTE, RELOPT_TYPE_REAL, and validate().
Referenced by ATExecSetOptions(), and get_attribute_options().
|
extern |
Definition at line 2078 of file reloptions.c.
References allocateReloptStruct(), fb(), fillRelOptions(), i, lfirst, list_length(), relopt_gen::name, noptions, relopt_parse_elt::offset, local_relopt::offset, local_relopt::option, relopt_parse_elt::optname, opts, relopt_parse_elt::opttype, palloc_array, parseLocalRelOptions(), pfree(), relopt_gen::type, and validate().
Referenced by index_opclass_options().
|
extern |
Definition at line 2041 of file reloptions.c.
References allocateReloptStruct(), Assert, fb(), fillRelOptions(), parseRelOptions(), pfree(), and validate().
Referenced by attribute_reloptions(), bloptions(), brinoptions(), btoptions(), default_reloptions(), dioptions(), ginoptions(), gistoptions(), hashoptions(), spgoptions(), tablespace_reloptions(), and view_reloptions().
|
extern |
Definition at line 1965 of file reloptions.c.
References build_reloptions(), fb(), fillfactor, lengthof, RELOPT_TYPE_BOOL, RELOPT_TYPE_ENUM, RELOPT_TYPE_INT, RELOPT_TYPE_REAL, RELOPT_TYPE_TERNARY, vacuum_cost_delay, vacuum_cost_limit, vacuum_max_eager_freeze_failure_rate, vacuum_truncate, and validate().
Referenced by heap_reloptions().
|
extern |
Definition at line 1488 of file reloptions.c.
References Assert, fastgetattr(), fb(), GETSTRUCT(), heap_reloptions(), index_reloptions(), partitioned_table_reloptions(), and view_reloptions().
Referenced by extract_autovac_opts(), and RelationParseRelOptions().
Definition at line 2152 of file reloptions.c.
References default_reloptions(), fb(), RELOPT_KIND_HEAP, RELOPT_KIND_TOAST, and validate().
Referenced by ATExecSetRelOptions(), create_ctas_internal(), DefineRelation(), extractRelOptions(), and ProcessUtilitySlow().
|
extern |
Definition at line 2187 of file reloptions.c.
References Assert, DatumGetPointer(), fb(), and validate().
Referenced by ATExecSetRelOptions(), DefineIndex(), and extractRelOptions().
|
extern |
Definition at line 782 of file reloptions.c.
Referenced by _ltree_gist_options(), brin_bloom_options(), brin_minmax_multi_options(), g_int_options(), g_intbig_options(), ghstore_options(), gtrgm_options(), gtsvector_options(), index_opclass_options(), and ltree_gist_options().
Definition at line 2117 of file reloptions.c.
References ereport, errcode(), errhint(), errmsg(), ERROR, fb(), and validate().
Referenced by ATExecSetRelOptions(), DefineRelation(), and extractRelOptions().
|
extern |
Definition at line 795 of file reloptions.c.
References fb(), and lappend().
Referenced by ltree_gist_options().
Definition at line 2219 of file reloptions.c.
References build_reloptions(), effective_io_concurrency, fb(), lengthof, maintenance_io_concurrency, random_page_cost, RELOPT_KIND_TABLESPACE, RELOPT_TYPE_INT, RELOPT_TYPE_REAL, seq_page_cost, and validate().
Referenced by AlterTableSpaceOptions(), CreateTableSpace(), and get_tablespace().
|
extern |
Definition at line 1256 of file reloptions.c.
References accumArrayResult(), DefElem::arg, CurrentMemoryContext, DatumGetArrayTypeP, DatumGetPointer(), deconstruct_array_builtin(), defGetBoolean(), defGetString(), DefElem::defname, DefElem::defnamespace, ereport, errcode(), errmsg(), ERROR, fb(), i, len, lfirst, makeArrayResult(), name, NIL, palloc(), PointerGetDatum(), SET_VARSIZE(), sprintf, value, VARDATA(), VARHDRSZ, and VARSIZE().
Referenced by AlterTableSpaceOptions(), ATExecSetOptions(), ATExecSetRelOptions(), ComputeIndexAttrs(), create_ctas_internal(), CreateTableSpace(), DefineIndex(), DefineRelation(), and ProcessUtilitySlow().
Definition at line 1440 of file reloptions.c.
References DatumGetArrayTypeP, DatumGetPointer(), deconstruct_array_builtin(), fb(), i, lappend(), makeDefElem(), makeString(), NIL, noptions, TextDatumGetCString, and val.
Referenced by ATExecSetRelOptions(), dblink_fdw_validator(), file_fdw_validator(), generateClonedIndexStmt(), GetForeignColumnOptions(), GetForeignDataWrapperExtended(), GetForeignServerExtended(), GetForeignTable(), GetUserMapping(), pg_options_to_table(), postgres_fdw_validator(), postgresql_fdw_validator(), and transformGenericOptions().
Definition at line 2131 of file reloptions.c.
References build_reloptions(), fb(), lengthof, RELOPT_KIND_VIEW, RELOPT_TYPE_BOOL, RELOPT_TYPE_ENUM, and validate().
Referenced by ATExecSetRelOptions(), DefineRelation(), and extractRelOptions().