postgres/contrib/amcheck
Peter Eisentraut 710e6c4301 Remove unneeded casts of BufferGetPage() result
BufferGetPage() already returns type Page, so casting it to Page
doesn't achieve anything.  A sizable number of call sites does this
casting; remove that.

This was already done inconsistently in the code in the first import
in 1996 (but didn't exist in the pre-1995 code), and it was then
apparently just copied around.

Author: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Richard Guo <guofenglinux@gmail.com>
Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://www.postgresql.org/message-id/flat/CALdSSPgFhc5=vLqHdk-zCcnztC0zEY3EU_Q6a9vPEaw7FkE9Vw@mail.gmail.com
2025-08-29 07:18:29 +02:00
..
expected amcheck: Improve error message for partitioned index target. 2025-07-14 20:05:10 +09:00
sql amcheck: Improve error message for partitioned index target. 2025-07-14 20:05:10 +09:00
t Run pgperltidy 2025-06-29 21:14:21 -04:00
.gitignore Add .gitignore to contrib/amcheck. 2017-03-09 22:45:24 -05:00
amcheck--1.1--1.2.sql Allow amcheck to re-find tuples using new search. 2019-03-20 10:41:36 -07:00
amcheck--1.2--1.3.sql Extend amcheck to check heap pages. 2020-10-22 08:44:18 -04:00
amcheck--1.3--1.4.sql Teach contrib/amcheck to check the unique constraint violation 2023-10-28 00:21:23 +03:00
amcheck--1.4--1.5.sql amcheck: Add gin_index_check() to verify GIN index 2025-03-29 15:44:29 +01:00
amcheck--1.0--1.1.sql Add amcheck verification of heap relations belonging to btree indexes. 2018-03-31 19:52:01 -07:00
amcheck--1.0.sql
amcheck.control amcheck: Add gin_index_check() to verify GIN index 2025-03-29 15:44:29 +01:00
Makefile amcheck: Add gin_index_check() to verify GIN index 2025-03-29 15:44:29 +01:00
meson.build amcheck: Fix checks of entry order for GIN indexes 2025-06-17 14:55:29 +02:00
verify_common.c amcheck: Improve error message for partitioned index target. 2025-07-14 20:05:10 +09:00
verify_common.h amcheck: Improve error message for partitioned index target. 2025-07-14 20:05:10 +09:00
verify_gin.c Remove unneeded casts of BufferGetPage() result 2025-08-29 07:18:29 +02:00
verify_heapam.c amcheck: Improve confusing message 2025-07-01 12:24:17 +02:00
verify_nbtree.c Standardize LSN formatting by zero padding 2025-07-07 13:57:43 +02:00