|
23 | 23 | #include "access/nbtree.h" |
24 | 24 | #include "access/reloptions.h" |
25 | 25 | #include "access/spgist.h" |
| 26 | +#include "access/tuptoaster.h" |
26 | 27 | #include "catalog/pg_type.h" |
27 | 28 | #include "commands/defrem.h" |
28 | 29 | #include "commands/tablespace.h" |
@@ -290,6 +291,15 @@ static relopt_int intRelOpts[] = |
290 | 291 | }, |
291 | 292 | -1, -1, INT_MAX |
292 | 293 | }, |
| 294 | + { |
| 295 | + { |
| 296 | + "toast_tuple_target", |
| 297 | + "Sets the target tuple length at which external columns will be toasted", |
| 298 | + RELOPT_KIND_HEAP, |
| 299 | + ShareUpdateExclusiveLock |
| 300 | + }, |
| 301 | + TOAST_TUPLE_TARGET, 128, TOAST_TUPLE_TARGET_MAIN |
| 302 | + }, |
293 | 303 | { |
294 | 304 | { |
295 | 305 | "pages_per_range", |
@@ -1344,6 +1354,8 @@ default_reloptions(Datum reloptions, bool validate, relopt_kind kind) |
1344 | 1354 | offsetof(StdRdOptions, autovacuum) + offsetof(AutoVacOpts, multixact_freeze_table_age)}, |
1345 | 1355 | {"log_autovacuum_min_duration", RELOPT_TYPE_INT, |
1346 | 1356 | offsetof(StdRdOptions, autovacuum) + offsetof(AutoVacOpts, log_min_duration)}, |
| 1357 | + {"toast_tuple_target", RELOPT_TYPE_INT, |
| 1358 | + offsetof(StdRdOptions, toast_tuple_target)}, |
1347 | 1359 | {"autovacuum_vacuum_scale_factor", RELOPT_TYPE_REAL, |
1348 | 1360 | offsetof(StdRdOptions, autovacuum) + offsetof(AutoVacOpts, vacuum_scale_factor)}, |
1349 | 1361 | {"autovacuum_analyze_scale_factor", RELOPT_TYPE_REAL, |
|
0 commit comments