Fix pg_settings query.

unit is available in >= 8.2 and boot and reset since 8.4.