postgres_fdw: Minor improvement to postgresAcquireSampleRowsFunc - Mailing list pgsql-hackers

From Etsuro Fujita
Subject postgres_fdw: Minor improvement to postgresAcquireSampleRowsFunc
Date
Msg-id CAPmGK17_urk9qkLV65_iYMFw64z5qhdfhY=tMVV6Jg4KNYx8+w@mail.gmail.com
Whole thread Raw
Responses Re: postgres_fdw: Minor improvement to postgresAcquireSampleRowsFunc
List pgsql-hackers
Hi,

In postgresAcquireSampleRowsFunc, we 1) determine the fetch size and
then 2) construct the fetch command in each iteration of fetching some
rows from the remote, but that would be totally redundant.  Attached
is a patch for removing that redundancy.

I'll add this to the upcoming commitfest.

Best regards,
Etsuro Fujita

Attachment

pgsql-hackers by date:

Previous
From: Sergei Kornilov
Date:
Subject: Re: Commitfest 2019-07, the first of five* for PostgreSQL 13
Next
From: Peter Eisentraut
Date:
Subject: Re: allow_system_table_mods stuff