pgsql: Eliminate some repetitive coding in tuplesort.c.
pgsql: Eliminate some repetitive coding in tuplesort.c.
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Eliminate some repetitive coding in tuplesort.c. Use a macro LogicalTapeReadExact() to encapsulate the error check when we want to read an exact number of bytes from a "tape". Per a suggestion of Takahiro Itagaki. Branch ------ master Details ------- http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=26a7b48e10bea67be719f5bb88cbaa8d4ec1c9b3 Modified Files -------------- src/backend/utils/sort/tuplesort.c | 69 ++++++++++++++++------------------- 1 files changed, 32 insertions(+), 37 deletions(-)