]> granicus.if.org Git - postgresql/commit
Eliminate some repetitive coding in tuplesort.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Oct 2010 00:32:21 +0000 (20:32 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Oct 2010 00:32:21 +0000 (20:32 -0400)
commit26a7b48e10bea67be719f5bb88cbaa8d4ec1c9b3
tree892e5f854633ddb5ce5d4542fb5d023a8e483fe4
parent3ba11d3df2115b04171a8eda8e0389e02578d8d0
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.
src/backend/utils/sort/tuplesort.c