61 #define HEAP_RELOPT_NAMESPACES { "toast", NULL }
178 #define GET_STRING_RELOPTION(optstruct, member) \
179 ((optstruct)->member == 0 ? NULL : \
180 (char *)(optstruct) + (optstruct)->member)
184 bool default_val,
LOCKMODE lockmode);
186 int default_val,
int min_val,
int max_val,
189 double default_val,
double min_val,
double max_val,
193 const char *detailmsg,
LOCKMODE lockmode);
202 const char *desc,
bool default_val,
205 const char *desc,
int default_val,
206 int min_val,
int max_val,
int offset);
208 const char *desc,
double default_val,
209 double min_val,
double max_val,
212 const char *
name,
const char *desc,
214 int default_val,
const char *detailmsg,
218 const char *default_val,
223 const char *namspace,
const char *
const validnsps[],
224 bool acceptOidsOff,
bool isReset);
230 Size relopt_struct_size,
232 int num_relopt_elems);
bytea *(* amoptions_function)(Datum reloptions, bool validate)
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)
void add_int_reloption(bits32 kinds, const char *name, const char *desc, int default_val, int min_val, int max_val, LOCKMODE lockmode)
struct relopt_gen relopt_gen
bytea * index_reloptions(amoptions_function amoptions, Datum reloptions, bool validate)
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 * tablespace_reloptions(Datum reloptions, bool validate)
void add_string_reloption(bits32 kinds, const char *name, const char *desc, const char *default_val, validate_string_relopt validator, LOCKMODE lockmode)
Datum transformRelOptions(Datum oldOptions, List *defList, const char *namspace, const char *const validnsps[], bool acceptOidsOff, bool isReset)
struct relopt_real relopt_real
Size(* fill_string_relopt)(const char *value, void *ptr)
struct relopt_bool relopt_bool
List * untransformRelOptions(Datum options)
@ RELOPT_KIND_LAST_DEFAULT
@ RELOPT_KIND_PARTITIONED
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)
bytea * heap_reloptions(char relkind, 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)
struct relopt_string relopt_string
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)
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)
void(* validate_string_relopt)(const char *value)
void add_bool_reloption(bits32 kinds, const char *name, const char *desc, bool default_val, LOCKMODE lockmode)
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 * view_reloptions(Datum reloptions, bool validate)
bytea * partitioned_table_reloptions(Datum reloptions, bool validate)
struct local_relopts local_relopts
relopt_kind add_reloption_kind(void)
struct relopt_enum relopt_enum
void register_reloptions_validator(local_relopts *relopts, relopts_validator validator)
LOCKMODE AlterTableGetRelOptionsLockLevel(List *defList)
bytea * extractRelOptions(HeapTuple tuple, TupleDesc tupdesc, amoptions_function amoptions)
bytea * default_reloptions(Datum reloptions, bool validate, relopt_kind kind)
bytea * attribute_reloptions(Datum reloptions, bool validate)
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)
struct relopt_value relopt_value
void(* relopts_validator)(void *parsed_options, relopt_value *vals, int nvals)
struct relopt_enum_elt_def relopt_enum_elt_def
struct relopt_int relopt_int
void * build_local_reloptions(local_relopts *relopts, Datum options, bool validate)
struct local_relopt local_relopt
relopt_enum_elt_def * members
validate_string_relopt validate_cb
fill_string_relopt fill_cb
union relopt_value::@47 values