From dc203dc3ac40a4b02b92fb827848a547d2957153 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 3 Feb 2016 09:01:59 -0500 Subject: 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. --- contrib/postgres_fdw/postgres_fdw.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'contrib/postgres_fdw/postgres_fdw.h') 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 */ -- cgit v1.2.3