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 | db8238da4265a1e381c0b5499cac2518580bb463 (patch) | |
tree | ddd089875b15421d6ea128720407922fcaa1d583 /src/backend/access/gist/gistproc.c | |
parent | e5cf186277f917c3743f34931b151c22555456d9 (diff) | |
download | postgresql-db8238da4265a1e381c0b5499cac2518580bb463.tar.gz postgresql-db8238da4265a1e381c0b5499cac2518580bb463.zip |
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/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions