pgsql: Eliminate some repetitive coding in tuplesort.c.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Eliminate some repetitive coding in tuplesort.c.
Date: 2010-10-08 00:32:42
Message-ID: E1P40t8-0005fB-Ab@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-10-08 01:47:28 pgsql: Improve logging in VACUUM FULL VERBOSE and CLUSTER VERBOSE.
Previous Message Tom Lane 2010-10-08 00:02:00 pgsql: Teach CLUSTER to use seqscan-and-sort when it's faster than inde