Eliminate some repetitive coding in tuplesort.c.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 26a7b48e10bea67be719f5bb88cbaa8d4ec1c9b3
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-10-08T00:32:21Z
Releases: 9.1.0
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.

Files

PathChange+/−
src/backend/utils/sort/tuplesort.c modified +32 −37