|
|
|
@ -2790,7 +2790,6 @@ postgresEndDirectModify(ForeignScanState *node) |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
/* Release PGresult */ |
|
|
|
|
if (dmstate->result) |
|
|
|
|
PQclear(dmstate->result); |
|
|
|
|
|
|
|
|
|
/* Release remote connection */ |
|
|
|
@ -3604,7 +3603,6 @@ get_remote_estimate(const char *sql, PGconn *conn, |
|
|
|
|
} |
|
|
|
|
PG_FINALLY(); |
|
|
|
|
{ |
|
|
|
|
if (res) |
|
|
|
|
PQclear(res); |
|
|
|
|
} |
|
|
|
|
PG_END_TRY(); |
|
|
|
@ -3853,7 +3851,6 @@ fetch_more_data(ForeignScanState *node) |
|
|
|
|
} |
|
|
|
|
PG_FINALLY(); |
|
|
|
|
{ |
|
|
|
|
if (res) |
|
|
|
|
PQclear(res); |
|
|
|
|
} |
|
|
|
|
PG_END_TRY(); |
|
|
|
@ -4338,7 +4335,6 @@ store_returning_result(PgFdwModifyState *fmstate, |
|
|
|
|
} |
|
|
|
|
PG_CATCH(); |
|
|
|
|
{ |
|
|
|
|
if (res) |
|
|
|
|
PQclear(res); |
|
|
|
|
PG_RE_THROW(); |
|
|
|
|
} |
|
|
|
@ -4627,7 +4623,6 @@ get_returning_data(ForeignScanState *node) |
|
|
|
|
} |
|
|
|
|
PG_CATCH(); |
|
|
|
|
{ |
|
|
|
|
if (dmstate->result) |
|
|
|
|
PQclear(dmstate->result); |
|
|
|
|
PG_RE_THROW(); |
|
|
|
|
} |
|
|
|
@ -4957,7 +4952,6 @@ postgresAnalyzeForeignTable(Relation relation, |
|
|
|
|
} |
|
|
|
|
PG_FINALLY(); |
|
|
|
|
{ |
|
|
|
|
if (res) |
|
|
|
|
PQclear(res); |
|
|
|
|
} |
|
|
|
|
PG_END_TRY(); |
|
|
|
@ -5114,7 +5108,6 @@ postgresAcquireSampleRowsFunc(Relation relation, int elevel, |
|
|
|
|
} |
|
|
|
|
PG_CATCH(); |
|
|
|
|
{ |
|
|
|
|
if (res) |
|
|
|
|
PQclear(res); |
|
|
|
|
PG_RE_THROW(); |
|
|
|
|
} |
|
|
|
@ -5496,7 +5489,6 @@ postgresImportForeignSchema(ImportForeignSchemaStmt *stmt, Oid serverOid) |
|
|
|
|
} |
|
|
|
|
PG_FINALLY(); |
|
|
|
|
{ |
|
|
|
|
if (res) |
|
|
|
|
PQclear(res); |
|
|
|
|
} |
|
|
|
|
PG_END_TRY(); |
|
|
|
|