Use table/index_close() more consistently All the code paths updated here have been using relation_close() to close a relation that has already been opened with table_open() or index_open(), where a relkind check is enforced.
table_close() and index_open() do the same thing as relation_close(), so there was no harm, but being inconsistent could lead to issues if the internals of these close() functions begin to introduce some logic specific to each relkind in the future. Author: Bertrand Drouvot <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9d0f7996e58c2a92efe06c901c6dfe1f6ced0a1d Modified Files -------------- src/backend/access/brin/brin.c | 8 ++++---- src/backend/parser/parse_utilcmd.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)
