postgresql/src/backend
Robert Haas 9fafa413ac Avoid valgrind complaint about write() of uninitalized bytes.
LogicalTapeFreeze() may write out its first block when it is dirty but
not full, and then immediately read the first block back in from its
BufFile as a BLCKSZ-width block.  This can only occur in rare cases
where very few tuples were written out, which is currently only
possible with parallel external tuplesorts.  To avoid valgrind
complaints, tell it to treat the tail of logtape.c's buffer as
defined.

Commit 9da0cc3528 exposed this problem
but did not create it.  LogicalTapeFreeze() has always tended to write
out some amount of garbage bytes, but previously never wrote less than
one block of data in total, so the problem was masked.

Per buildfarm members lousyjack and skink.

Peter Geoghegan, based on a suggestion from Tom Lane and me.  Some
comment revisions by me.
2018-02-06 14:24:57 -05:00
..
access Doc: move info for btree opclass implementors into main documentation. 2018-02-06 13:52:27 -05:00
bootstrap Support parallel btree index builds. 2018-02-02 13:32:44 -05:00
catalog Support parallel btree index builds. 2018-02-02 13:32:44 -05:00
commands Fix application of identity values in some cases 2018-02-02 14:39:10 -05:00
executor Skip setting up shared instrumentation for Hash node if not needed. 2018-02-04 22:14:07 -05:00
foreign Update copyright for 2018 2018-01-02 23:30:12 -05:00
lib Update copyright for 2018 2018-01-02 23:30:12 -05:00
libpq Fix up references to scram-sha-256 2018-01-30 16:50:30 -05:00
main Update copyright for 2018 2018-01-02 23:30:12 -05:00
nodes Fix application of identity values in some cases 2018-02-02 14:39:10 -05:00
optimizer Fix possible crash in partition-wise join. 2018-02-05 17:31:57 -05:00
parser Fix application of identity values in some cases 2018-02-02 14:39:10 -05:00
po Translation updates 2017-08-07 13:55:34 -04:00
port Support huge pages on Windows 2018-01-21 15:40:46 +01:00
postmaster Support parallel btree index builds. 2018-02-02 13:32:44 -05:00
regex Update copyright for 2018 2018-01-02 23:30:12 -05:00
replication Fix typo in recent commit 2018-01-19 06:36:17 +00:00
rewrite Fix application of identity values in some cases 2018-02-02 14:39:10 -05:00
snowball Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
statistics Update copyright for 2018 2018-01-02 23:30:12 -05:00
storage Support parallel btree index builds. 2018-02-02 13:32:44 -05:00
tcop Transaction control in PL procedures 2018-01-22 08:43:06 -05:00
tsearch Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
utils Avoid valgrind complaint about write() of uninitalized bytes. 2018-02-06 14:24:57 -05:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Add ICU_CFLAGS to global CPPFLAGS 2017-06-12 15:57:22 -04:00
Makefile Update copyright for 2018 2018-01-02 23:30:12 -05:00
nls.mk Translation updates 2017-05-15 12:19:54 -04:00