postgres/contrib/pg_freespacemap
Tom Lane 4623d71443 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 <tharakan@gmail.com>
Author: Tender Wang <tndrwang@gmail.com>
Reviewed-by: Euler Taveira <euler@eulerto.com>
Discussion: https://postgr.es/m/18866-d68926d0f1c72d44@postgresql.org
Backpatch-through: 13
2025-03-27 13:20:23 -04:00
..
expected Add some basic regression tests for pg_freespacemap 2022-03-24 09:36:30 +09:00
sql Add some basic regression tests for pg_freespacemap 2022-03-24 09:36:30 +09:00
.gitignore Add some basic regression tests for pg_freespacemap 2022-03-24 09:36:30 +09:00
Makefile pg_freespacemap: Use SQL-standard function bodies 2024-11-12 17:28:03 +09:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_freespacemap--1.1--1.2.sql Default monitoring roles 2017-03-30 14:18:53 -04:00
pg_freespacemap--1.1.sql
pg_freespacemap--1.2--1.3.sql pg_freespacemap: Fix declaration of pg_freespace(regclass) 2025-01-08 13:16:43 +09:00
pg_freespacemap--1.0--1.1.sql
pg_freespacemap.c Prevent assertion failure in contrib/pg_freespacemap. 2025-03-27 13:20:23 -04:00
pg_freespacemap.conf Avoid instabilities with the regression tests of pg_freespacemap 2022-03-29 13:52:49 +09:00
pg_freespacemap.control pg_freespacemap: Use SQL-standard function bodies 2024-11-12 17:28:03 +09:00