14 #ifndef TOAST_HELPER_H
15 #define TOAST_HELPER_H
78 #define TOAST_NEEDS_DELETE_OLD 0x0001
79 #define TOAST_NEEDS_FREE 0x0002
80 #define TOAST_HAS_NULLS 0x0004
81 #define TOAST_NEEDS_CHANGE 0x0008
99 #define TOASTCOL_NEEDS_DELETE_OLD TOAST_NEEDS_DELETE_OLD
100 #define TOASTCOL_NEEDS_FREE TOAST_NEEDS_FREE
101 #define TOASTCOL_IGNORE 0x0010
102 #define TOASTCOL_INCOMPRESSIBLE 0x0020
106 bool for_compression,
114 bool is_speculative);
static Datum values[MAXATTR]
struct varlena * tai_oldexternal
void toast_tuple_init(ToastTupleContext *ttc)
void toast_delete_external(Relation rel, const Datum *values, const bool *isnull, bool is_speculative)
void toast_tuple_try_compression(ToastTupleContext *ttc, int attribute)
void toast_tuple_externalize(ToastTupleContext *ttc, int attribute, int options)
void toast_tuple_cleanup(ToastTupleContext *ttc)
int toast_tuple_find_biggest_attribute(ToastTupleContext *ttc, bool for_compression, bool check_main)