]> granicus.if.org Git - postgresql/commit
Fix ancient get_object_address_opf_member bug
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 16 Mar 2017 15:51:08 +0000 (12:51 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 16 Mar 2017 15:51:08 +0000 (12:51 -0300)
commit41306a511c01dd299115cf447858a00e34aebbf6
tree3a7365272de8276a075b11da603f96cea9be8980
parent5feb78ae885ce7ab134aad1d12875bd5103e5842
Fix ancient get_object_address_opf_member bug

The original coding was trying to use a TypeName as a string Value,
which doesn't work; an oversight in my commit a61fd533.  Repair.

Also, make sure we cover the broken case in the relevant test script.

Backpatch to 9.5.

Discussion: https://postgr.es/m/20170315151829.bhxsvrp75xdxhm3n@alvherre.pgsql
src/backend/catalog/objectaddress.c
src/test/regress/expected/object_address.out
src/test/regress/sql/object_address.sql