title: set current database postgres in c++
body: <p>The subject is the exact line I tried for Google.</p>
  <p>Unfortunately the return from starts with &quot;How to RETRIEVE table name in Postgres&quot;.</p>
  <p>And then couple of following talks about using psql.</p>
  <p>So hopefully someone here will help - &quot;From the C++ code with libpq or ODBC&quot; how do I set the current working database?</p>
  <p>I guess I'm looking for a standard SELECT query or some PG-specific command I can execute to change the <code>cwd (Current Working Database)</code>.</p>