diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2025-03-27 13:20:23 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2025-03-27 13:20:23 -0400 |
commit | 0e86bad380997b3b6d39191df31ad7c1945ab389 (patch) | |
tree | f53bedbe51119a62f3766f2b8d560ed6b9e13925 /src/backend/executor/nodeModifyTable.c | |
parent | 7ca50f90c09740b29d5695659824f172aa4a9135 (diff) |
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
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions