]> granicus.if.org Git - postgresql/commit
postgres_fdw: Remove redundancy in postgresAcquireSampleRowsFunc().
authorEtsuro Fujita <efujita@postgresql.org>
Wed, 3 Jul 2019 08:51:00 +0000 (17:51 +0900)
committerEtsuro Fujita <efujita@postgresql.org>
Wed, 3 Jul 2019 08:51:00 +0000 (17:51 +0900)
commit2a1612104cadbfdc739ff0370f279779f323c3b5
tree75bbb2ead7527fc6dd83f17629a5a2a25102f49f
parente72489e101b21c328e3d10ca64e5367c60f424a5
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
contrib/postgres_fdw/postgres_fdw.c