]> granicus.if.org Git - postgresql/commit
Adjust trace_sort log messages.
authorPeter Geoghegan <pg@bowt.ie>
Thu, 1 Nov 2018 16:18:55 +0000 (09:18 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Thu, 1 Nov 2018 16:18:55 +0000 (09:18 -0700)
commit886319d71bd5c0ba18c9b46a1e3765d88f5ed0e7
tree6f464463a42828ee4853f050f5a26605139e9a1f
parentc33a01c7979dc267c81ece612af783ecacf22bc0
Adjust trace_sort log messages.

The project message style guide dictates: "When citing the name of an
object, state what kind of object it is".  The parallel CREATE INDEX
patch added a worker number to most of the trace_sort messages within
tuplesort.c without specifying the object type.  Bring these messages
into compliance with the style guide.

We're still treating a leader or serial Tuplesortstate as having worker
number -1.  trace_sort is a developer option, and these two cases are
highly comparable, so this seems appropriate.

Per complaint from Tom Lane.

Discussion: https://postgr.es/m/8330.1540831863@sss.pgh.pa.us
Backpatch: 11-, where parallel CREATE INDEX was introduced.
src/backend/utils/sort/tuplesort.c