diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2024-11-15 08:42:59 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2024-11-15 08:52:43 +0100 |
commit | e468ec0fddcd93e282da6685b75d5687c2a87f2a (patch) | |
tree | 1c4a33420fd0587ca42cd37cb275637f49610fa1 /src/backend/jit/llvm/llvmjit_expr.c | |
parent | 818119afccd342823e5b638be51f64ba36221318 (diff) | |
download | postgresql-e468ec0fddcd93e282da6685b75d5687c2a87f2a.tar.gz postgresql-e468ec0fddcd93e282da6685b75d5687c2a87f2a.zip |
Add an assertion in get_object_address()
Some places declared a Relation before calling get_object_address()
only to assert that the relation is NULL after the call.
The new assertion allows passing NULL as the relation argument at
those places making the code cleaner and easier to understand.
Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://www.postgresql.org/message-id/ZzG34eNrT83W/Orz@ip-10-97-1-34.eu-west-3.compute.internal
Diffstat (limited to 'src/backend/jit/llvm/llvmjit_expr.c')
0 files changed, 0 insertions, 0 deletions