Definition at line 1217 of file pgsql2shp-core.c.
 1226         state->
conn = PQconnectdb(connstring);
 
 1227         if (PQstatus(state->
conn) == CONNECTION_BAD)
 
 1235         res = PQexec(state->
conn, 
"SET DATESTYLE='ISO'");
 
 1236         if (PQresultStatus(
res) != PGRES_COMMAND_OK)
 
 1247         res = PQexec(state->
conn, 
"SELECT postgis_version()");
 
 1248         if (PQresultStatus(
res) != PGRES_TUPLES_OK)
 
 1256         tmpvalue = PQgetvalue(
res, 0, 0);
 
 1262         res = PQexec(state->
conn, 
"SELECT oid FROM pg_type WHERE typname = 'geometry'");
 
 1263         if (PQresultStatus(
res) != PGRES_TUPLES_OK)
 
 1271         if (PQntuples(
res) > 0)
 
 1273                 tmpvalue = PQgetvalue(
res, 0, 0);
 
 1287         res = PQexec(state->
conn, 
"SELECT oid FROM pg_type WHERE typname = 'geography'");
 
 1288         if (PQresultStatus(
res) != PGRES_TUPLES_OK)
 
 1296         if (PQntuples(
res) > 0)
 
 1299                 tmpvalue = PQgetvalue(
res, 0, 0);
 
char * ShpDumperGetConnectionStringFromConn(SHPCONNECTIONCONFIG *conn)
SHPCONNECTIONCONFIG * conn
char message[SHPDUMPERMSGLEN]
 
References _, shp_dumper_state::config, shp_dumper_config::conn, shp_dumper_state::conn, free(), shp_dumper_state::geog_oid, shp_dumper_state::geom_oid, shp_dumper_state::message, shp_dumper_state::pgis_major_version, window::res, SHPDUMPERERR, ShpDumperGetConnectionStringFromConn(), SHPDUMPERMSGLEN, and SHPDUMPEROK.
Referenced by main(), and pgui_action_export().