PostgreSQL Source Code
git master
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>
#include "libpq-fe.h"
Go to the source code of this file.
Functions | |
static void | exit_nicely (PGconn *conn) |
int | main (int argc, char **argv) |
|
static |
Definition at line 42 of file testlibpq2.c.
References conn, exit(), and PQfinish().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 49 of file testlibpq2.c.
References pgNotify::be_pid, conn, CONNECTION_OK, exit_nicely(), fprintf, PGRES_COMMAND_OK, PGRES_TUPLES_OK, PQclear(), PQconnectdb(), PQconsumeInput(), PQerrorMessage(), PQexec(), PQfinish(), PQfreemem(), PQnotifies(), PQresultStatus(), PQsocket(), PQstatus(), pgNotify::relname, res, select, and strerror.