pgsql: Eliminate some repetitive coding in tuplesort.c. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Eliminate some repetitive coding in tuplesort.c.
Date
Msg-id E1P40t8-0005fB-Ab@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Teach CLUSTER to use seqscan-and-sort when it's faster than inde
Next
From: Tom Lane
Date:
Subject: pgsql: Improve logging in VACUUM FULL VERBOSE and CLUSTER VERBOSE.