OSDN Git Service

Fix boolean setter declaration
authorKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Tue, 22 Jan 2019 08:14:21 +0000 (17:14 +0900)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Tue, 22 Jan 2019 09:20:33 +0000 (18:20 +0900)
commit9d7ea0791203119b0805bb8c0d140eed8a150d89
tree62ec83fa260c68a4e6c98192bc709fc06e29621f
parent5bdf0d7b47cf08d312fb8f2a03a998129fd67302
Fix boolean setter declaration

BOOL_SETTER ignores given name and always sets value to the member
"parallel_aware". When inner_uniue comes after parallel_aware, the
former overrides the latter and the latter doesn't get the right
value.  As the result the following JSON plan is wrongly converted as
"Parallel Join".

select pg_store_plans_textplan('{"Plans":[{"Node Type":"Join","Parallel Aware":false,"Inner Unique":true}]}');

Currently only "Inner Unique" hits this.
pgsp_json_text.h