git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 818119a) | patch
Add an assertion in get_object_address()
2024年11月15日 07:42:59 +0000 (08:42 +0100)
2024年11月15日 07:52:43 +0000 (08:52 +0100)
commit e468ec0fddcd93e282da6685b75d5687c2a87f2a
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
src/backend/catalog/objectaddress.c diff | blob | blame | history
src/backend/commands/alter.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /