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 <thara...@gmail.com> Author: Tender Wang <tndrw...@gmail.com> Reviewed-by: Euler Taveira <eu...@eulerto.com> Discussion: https://postgr.es/m/18866-d68926d0f1c72...@postgresql.org Backpatch-through: 13 Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5ff827389e7739c05888218bd9cd123f0b9b3122 Modified Files -------------- contrib/pg_freespacemap/pg_freespacemap.c | 7 +++++++ 1 file changed, 7 insertions(+)