38 "SELECT pg_catalog.set_config('search_path', '', false)");
71 fprintf(
stderr,
"usage: %s tableName dbName1 dbName2\n", argv[0]);
116 res1 =
PQexec(
conn1,
"DECLARE myportal CURSOR FOR select * from pg_database");
128 fprintf(
stderr,
"FETCH ALL command didn't return tuples properly\n");
#define fprintf(file, fmt, msg)
ConnStatusType PQstatus(const PGconn *conn)
void PQfinish(PGconn *conn)
char * PQerrorMessage(const PGconn *conn)
PGresult * PQexec(PGconn *conn, const char *query)
#define PQsetdb(M_PGHOST, M_PGPORT, M_PGOPT, M_PGTTY, M_DBNAME)
static const char * pghost
static const char * pgport
static const char * dbName
static void exit_nicely(PGconn *conn1, PGconn *conn2)
static void check_prepare_conn(PGconn *conn, const char *dbName)