Permalink
Browse files

Copy results to the client (postgres) only when needed.

  • Loading branch information...
1 parent 3b11eac commit 65a604f01595e377ad326f68b30c4089e888bd34 @dpage dpage committed Aug 1, 2011
Showing with 1 addition and 5 deletions.
  1. +0 −4 README
  2. +1 −1 mysql_fdw.c
View
4 README
@@ -33,10 +33,6 @@ Limitations
- The MySQL connection used to plan queries isn't currently reused
during execution.
-- The entire resultset from MySQL is transferred to the PostgreSQL
- server at once - need to use prepared statements with batch
- transfer.
-
- Rescan currently does nothing.
Usage
View
@@ -556,7 +556,7 @@ mysqlBeginForeignScan(ForeignScanState *node, int eflags)
}
/* Guess the query succeeded then */
- festate->result = mysql_store_result(conn);
+ festate->result = mysql_use_result(conn);
/* Store the additional state info */
festate->attinmeta = TupleDescGetAttInMetadata(node->ss.ss_currentRelation->rd_att);

0 comments on commit 65a604f

Please sign in to comment.