Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÁlvaro Herrera2025-03-11 11:50:35 +0000
committerÁlvaro Herrera2025-03-11 11:50:35 +0000
commit17ce344f86f1a9a9002d8b668ea7d77234ec3e60 (patch)
treea189204460b569e2c143a80ba5a18508ca1eda59 /src/backend/access/spgist
parentd35d32d7112bc632c6a305e9dffdec0082bbdf00 (diff)
BRIN: be more strict about required support procs
With improperly defined operator classes, it's possible to get a Postgres crash because we'd try to invoke a procedure that doesn't exist. This is because the code is being a bit too trusting that the opclass is correctly defined. Add some ereport(ERROR)s for cases where mandatory support procedures are not defined, transforming the crashes into errors. The particular case that was reported is an incomplete opclass in PostGIS. Backpatch all the way down to 13. Reported-by: Tobias Wendorff <tobias.wendorff@tu-dortmund.de> Diagnosed-by: David Rowley <dgrowleyml@gmail.com> Reviewed-by: Tomas Vondra <tomas@vondra.me> Discussion: https://postgr.es/m/fb6d9a35-6c8e-4869-af80-0a4944a793a4@tu-dortmund.de
Diffstat (limited to 'src/backend/access/spgist')
0 files changed, 0 insertions, 0 deletions