OSDN Git Service

Simplify installation of PL/pgSQL plugin with small refactoring.
authorShigeru Hanada <hanada@metrosystems.co.jp>
Wed, 12 Jun 2013 09:27:01 +0000 (18:27 +0900)
committerShigeru Hanada <hanada@metrosystems.co.jp>
Wed, 12 Jun 2013 09:27:01 +0000 (18:27 +0900)
commitfbf88ca7b8fe81244661ad8710f19e14deb6643a
treed41e0b57c76b964ee7306ad130e7ee0cf7532f07
parentc9e74d5e235218811e3c9ea8dc72fb0928adcaaa
Simplify installation of PL/pgSQL plugin with small refactoring.

Using setup callback function to set stmt_beg and stmt_end is redundant,
so simply fill static PLpgSQL_plugin install with function pointers and
NULLs.

Besides, I noticed that it's recommended to uninstall plugin at PQ_fini
in the comment of PLpgSQL_plugin, so follow the instruction.
pg_hint_plan.c