aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-02-03 09:01:59 -0500
committerRobert Haas <rhaas@postgresql.org>2016-02-03 09:07:35 -0500
commitdc203dc3ac40a4b02b92fb827848a547d2957153 (patch)
tree3dfb165d3fc356f6fb847f16b2590805c0c54bd4 /contrib/postgres_fdw/postgres_fdw.h
parente6ecc93a1747624c4d33fa48d8a2d77319f3400f (diff)
downloadpostgresql-dc203dc3ac40a4b02b92fb827848a547d2957153.tar.gz
postgresql-dc203dc3ac40a4b02b92fb827848a547d2957153.zip
postgres_fdw: Allow fetch_size to be set per-table or per-server.
The default fetch size of 100 rows might not be right in every environment, so allow users to configure it. Corey Huinker, reviewed by Kyotaro Horiguchi, Andres Freund, and me.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
-rw-r--r--contrib/postgres_fdw/postgres_fdw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.h b/contrib/postgres_fdw/postgres_fdw.h
index bf83c91481c..2b632817fec 100644
--- a/contrib/postgres_fdw/postgres_fdw.h
+++ b/contrib/postgres_fdw/postgres_fdw.h
@@ -53,6 +53,8 @@ typedef struct PgFdwRelationInfo
ForeignTable *table;
ForeignServer *server;
UserMapping *user; /* only set in use_remote_estimate mode */
+
+ int fetch_size; /* fetch size for this remote table */
} PgFdwRelationInfo;
/* in postgres_fdw.c */