aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/heapam.h
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2020-08-26 09:40:52 +0530
committerAmit Kapila <akapila@postgresql.org>2020-08-26 09:40:52 +0530
commit7e453634bb62f06a048f5562ba59d52aa1f28d12 (patch)
tree94a406f8d1b748fa98dff44ff5e4faa427c0d7a7 /src/include/access/heapam.h
parent808e13b282efa7e7ac7b78e886aca5684f4bccd3 (diff)
downloadpostgresql-7e453634bb62f06a048f5562ba59d52aa1f28d12.tar.gz
postgresql-7e453634bb62f06a048f5562ba59d52aa1f28d12.zip
Add additional information in the vacuum error context.
The additional information added will be an offset number for heap operations. This information will help us in finding the exact tuple due to which the error has occurred. Author: Mahendra Singh Thalor and Amit Kapila Reviewed-by: Sawada Masahiko, Justin Pryzby and Amit Kapila Discussion: https://postgr.es/m/CAKYtNApK488TDF4bMbw+1QH8HJf9cxdNDXquhU50TK5iv_FtCQ@mail.gmail.com
Diffstat (limited to 'src/include/access/heapam.h')
-rw-r--r--src/include/access/heapam.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h
index ba77013f64f..92b19dba324 100644
--- a/src/include/access/heapam.h
+++ b/src/include/access/heapam.h
@@ -178,7 +178,8 @@ extern int heap_page_prune(Relation relation, Buffer buffer,
struct GlobalVisState *vistest,
TransactionId limited_oldest_xmin,
TimestampTz limited_oldest_ts,
- bool report_stats, TransactionId *latestRemovedXid);
+ bool report_stats, TransactionId *latestRemovedXid,
+ OffsetNumber *off_loc);
extern void heap_page_prune_execute(Buffer buffer,
OffsetNumber *redirected, int nredirected,
OffsetNumber *nowdead, int ndead,