Prevent assertion failure in contrib/pg_freespacemap. Applying pg_freespacemap() to a relation lacking storage (such as a view) caused an assertion failure, although there was no ill effect in non-assert builds. Add an error check for that case.
Bug: #18866 Reported-by: Robins Tharakan <[email protected]> Author: Tender Wang <[email protected]> Reviewed-by: Euler Taveira <[email protected]> Discussion: https://postgr.es/m/[email protected] Backpatch-through: 13 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/41ed749e48b0b5f59c116a12241171a48eebe05a Modified Files -------------- contrib/pg_freespacemap/pg_freespacemap.c | 8 ++++++++ 1 file changed, 8 insertions(+)
