]> granicus.if.org Git - postgresql/commit
Lots of comment-fixing, and minor cosmetic cleanup, in pg_dump/parallel.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 May 2016 18:02:11 +0000 (14:02 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 May 2016 18:02:11 +0000 (14:02 -0400)
commitda0ab74d16efa652a3a574e7203d0bc8a5efecd0
tree5881acce3c0a5b1acea3b7f7e3c8fd122e0a8109
parent20766315cd87a557ea6575ab8475c771b5e6cf77
Lots of comment-fixing, and minor cosmetic cleanup, in pg_dump/parallel.c.

The commentary in this file was in extremely sad shape.  The author(s)
had clearly never heard of the project convention that a function header
comment should provide an API spec of some sort for that function.  Much
of it was flat out wrong, too --- maybe it was accurate when written, but
if so it had not been updated to track subsequent code revisions.  Rewrite
and rearrange to try to bring it up to speed, and annotate some of the
places where more work is needed.  (I've refrained from actually fixing
anything of substance ... yet.)

Also, rename a couple of functions for more clarity as to what they do,
do some very minor code rearrangement, remove some pointless Asserts,
fix an incorrect Assert in readMessageFromPipe, and add a missing socket
close in one error exit from pgpipe().  The last would be a bug if we
tried to continue after pgpipe() failure, but since we don't, it's just
cosmetic at present.

Although this is only cosmetic, back-patch to 9.3 where parallel.c was
added.  It's sufficiently invasive that it'll pose a hazard for future
back-patching if we don't.

Discussion: <25239.1464386067@sss.pgh.pa.us>
src/bin/pg_dump/parallel.c
src/bin/pg_dump/pg_backup_archiver.c