Do not fail if pillar.postgresql is not defined

This patch slightly improves selection of the default version of
postgres using grain.filter_by instead of if/elif/else logic.

Change-Id: Ic6c912685cbc845405158be5e83ae289a13d455b
1 file changed