Fix libpq example programs

Peter Eisentraut <peter_e@gmx.net>

Commit: 2a4dca949109dae3b95c5f4d55462fd4e6673310
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2018-07-01T12:09:22Z
Releases: 9.4.19
Fix libpq example programs

When these programs call pg_catalog.set_config, they need to check for
PGRES_TUPLES_OK instead of PGRES_COMMAND_OK.  Fix for
5770172cb0c9df9e6ce27c507b449557e5b45124.

Reported-by: Ideriha, Takeshi <ideriha.takeshi@jp.fujitsu.com>

Files