postgresql/src/backend
Tom Lane babef40c9a Teach walsender to update its process title for replication commands.
Because the code path taken for SQL commands executed in a walsender
will update the process title, we pretty much have to update the
title for replication commands as well.  Otherwise, the title shows
"idle" for the rest of a logical walsender's lifetime once it's
executed any SQL command.

Playing with this, I confirm that a walsender now typically spends
most of its life reporting
	walsender postgres [local] START_REPLICATION
Considering this in isolation, it might be better to have it say
	walsender postgres [local] sending replication data
However, consistency with the other cases seems to be a stronger
argument.

In passing, remove duplicative pgstat_report_activity call.

Discussion: https://postgr.es/m/880181.1600026471@sss.pgh.pa.us
2020-09-16 21:06:50 -04:00
..
access Report resource usage at the end of recovery 2020-09-16 11:25:46 +12:00
bootstrap Improve some ancient, crufty code in bootstrap + initdb. 2020-09-05 16:20:04 -04:00
catalog Make index_set_state_flags() transactional 2020-09-14 13:56:41 +09:00
commands Don't fetch partition check expression during InitResultRelInfo. 2020-09-16 14:28:18 -04:00
executor Don't fetch partition check expression during InitResultRelInfo. 2020-09-16 14:28:18 -04:00
foreign Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jit Fix a few typos in JIT comments and README 2020-08-21 09:33:56 +12:00
lib Use pg_bitutils for HyperLogLog. 2020-07-30 09:14:23 -07:00
libpq Message fixes and style improvements 2020-09-14 06:42:30 +02:00
main Clean up includes of s_lock.h. 2020-06-18 19:41:05 -07:00
nodes Message fixes and style improvements 2020-09-14 06:42:30 +02:00
optimizer Allow incremental sorts for windowing functions 2020-09-15 23:44:45 +12:00
parser Message fixes and style improvements 2020-09-14 06:42:30 +02:00
partitioning Clean up some code and comments in partbounds.c. 2020-09-10 18:00:00 +09:00
po Translation updates 2020-05-18 12:49:30 +02:00
port Add huge_page_size setting for use on Linux. 2020-07-17 14:33:00 +12:00
postmaster Centralize setup of SIGQUIT handling for postmaster child processes. 2020-09-16 16:04:36 -04:00
regex Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
replication Teach walsender to update its process title for replication commands. 2020-09-16 21:06:50 -04:00
rewrite Redefine pg_class.reltuples to be -1 before the first VACUUM or ANALYZE. 2020-08-30 12:21:51 -04:00
snowball code: replace most remaining uses of 'master'. 2020-07-08 13:24:35 -07:00
statistics Remove some more useless assignments. 2020-09-04 14:32:19 -04:00
storage Optimize compactify_tuples function 2020-09-16 13:22:20 +12:00
tcop Fix bogus completion tag usage in walsender 2020-09-16 21:16:25 -03:00
tsearch Yet more elimination of dead stores and useless initializations. 2020-09-05 13:17:32 -04:00
utils Centralize setup of SIGQUIT handling for postmaster child processes. 2020-09-16 16:04:36 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Add missing gettext triggers 2020-04-28 13:35:40 +02:00