pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Etsuro Fujita <efujita@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: postgres_fdw: Remove redundancy in postgresAcquireSampleRowsFunc
Date: Wed, 03 Jul 2019 08:56:51 +0000
Message-ID: <E1hib4N-0001Qx-VO@gemulon.postgresql.org> (raw)

postgres_fdw: Remove redundancy in postgresAcquireSampleRowsFunc().

Previously, in the loop in postgresAcquireSampleRowsFunc() to iterate
fetching rows from a given remote table, we redundantly 1) determined the
fetch size by parsing the table's server/table-level options and then 2)
constructed the fetch command; remove that redundancy.

Author: Etsuro Fujita
Reviewed-by: Julien Rouhaud
Discussion: https://postgr.es/m/CAPmGK17_urk9qkLV65_iYMFw64z5qhdfhY=tMVV6Jg4KNYx8+w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2a1612104cadbfdc739ff0370f279779f323c3b5

Modified Files
--------------
contrib/postgres_fdw/postgres_fdw.c | 63 ++++++++++++++++++++-----------------
1 file changed, 34 insertions(+), 29 deletions(-)



Message-ID: <E1hib4N-0001Qx-VO@gemulon.postgresql.org>
Permalink:  ../E1hib4N-0001Qx-VO@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hib4N-0001Qx-VO@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: efujita@postgresql.org
  Subject: Re: pgsql: postgres_fdw: Remove redundancy in postgresAcquireSampleRowsFunc
  In-Reply-To: <E1hib4N-0001Qx-VO@gemulon.postgresql.org>
  References: <E1hib4N-0001Qx-VO@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox