aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2019-07-06 11:41:23 +0530
committerAmit Kapila <akapila@postgresql.org>2019-07-06 11:41:23 +0530
commit78d41f6c9b0e1c4bd28f9b80cd07c7530660312f (patch)
treece205179c6e770143a7b935af98ddf12108e5ffc /src
parentcf20cc00a99155a8e41a1bb2a1e498624c86db29 (diff)
downloadpostgresql-78d41f6c9b0e1c4bd28f9b80cd07c7530660312f.tar.gz
postgresql-78d41f6c9b0e1c4bd28f9b80cd07c7530660312f.zip
Add missing assertions for required table am callbacks.
Reported-by: Ashwin Agrawal Author: Ashwin Agrawal Reviewed-by: Amit Kapila Backpatch-through: 12, where it was introduced Discussion: https://postgr.es/m/CALfoeisgdZhYDrJOukaBzvXfJOK2FQ0szVMK7dzmcy6w93iDUA@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/table/tableamapi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backend/access/table/tableamapi.c b/src/backend/access/table/tableamapi.c
index b2f58768107..eff1085a6df 100644
--- a/src/backend/access/table/tableamapi.c
+++ b/src/backend/access/table/tableamapi.c
@@ -51,6 +51,7 @@ GetTableAmRoutine(Oid amhandler)
Assert(routine->scan_begin != NULL);
Assert(routine->scan_end != NULL);
Assert(routine->scan_rescan != NULL);
+ Assert(routine->scan_getnextslot != NULL);
Assert(routine->parallelscan_estimate != NULL);
Assert(routine->parallelscan_initialize != NULL);
@@ -62,7 +63,10 @@ GetTableAmRoutine(Oid amhandler)
Assert(routine->index_fetch_tuple != NULL);
Assert(routine->tuple_fetch_row_version != NULL);
+ Assert(routine->tuple_tid_valid != NULL);
+ Assert(routine->tuple_get_latest_tid != NULL);
Assert(routine->tuple_satisfies_snapshot != NULL);
+ Assert(routine->compute_xid_horizon_for_tuples != NULL);
Assert(routine->tuple_insert != NULL);
@@ -89,6 +93,7 @@ GetTableAmRoutine(Oid amhandler)
Assert(routine->index_validate_scan != NULL);
Assert(routine->relation_size != NULL);
+ Assert(routine->relation_needs_toast_table != NULL);
Assert(routine->relation_estimate_size != NULL);