Fix libpq example programs

Peter Eisentraut <peter_e@gmx.net>

Commit: c2c69d43addb23cde95eb428ef85902d52529251
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2018-07-01T12:09:03Z
Releases: 10.5
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

Documentation touched