Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cdceadf

Browse files
author
Nikita Glukhov
committed
Disable VACUUM FULL on jsonb_toaster TOAST relation
1 parent f834d3e commit cdceadf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contrib/jsonb_toaster/jsonb_toaster.c

+7
Original file line numberDiff line numberDiff line change
@@ -3797,6 +3797,12 @@ jsonb_toaster_init(Relation rel, Oid toastoid, Oid toastindexoid,
37973797
lockmode, check, OIDOldToast);
37983798
}
37993799

3800+
static int
3801+
jsonb_toaster_relinfo(Relation toastrel)
3802+
{
3803+
return TOASTREL_VACUUM_FULL_DISABLED;
3804+
}
3805+
38003806
PG_FUNCTION_INFO_V1(jsonb_toaster_handler);
38013807
Datum
38023808
jsonb_toaster_handler(PG_FUNCTION_ARGS)
@@ -3811,6 +3817,7 @@ jsonb_toaster_handler(PG_FUNCTION_ARGS)
38113817
tsr->detoast = jsonb_toaster_detoast;
38123818
tsr->toastervalidate = jsonb_toaster_validate;
38133819
tsr->get_vtable = jsonb_toaster_vtable;
3820+
tsr->relinfo = jsonb_toaster_relinfo;
38143821

38153822
PG_RETURN_POINTER(tsr);
38163823
}

0 commit comments

Comments
 (0)