postgresql/src/include
Robert Haas fc70a4b0df Show more processes in pg_stat_activity.
Previously, auxiliary processes and background workers not connected
to a database (such as the logical replication launcher) weren't
shown.  Include them, so that we can see the associated wait state
information.  Add a new column to identify the processes type, so that
people can filter them out easily using SQL if they wish.

Before this patch was written, there was discussion about whether we
should expose this information in a separate view, so as to avoid
contaminating pg_stat_activity with things people might not want to
see.  But putting everything in pg_stat_activity was a more popular
choice, so that's what the patch does.

Kuntal Ghosh, reviewed by Amit Langote and Michael Paquier.  Some
revisions and bug fixes by me.

Discussion: http://postgr.es/m/CA+TgmoYES5nhkEGw9nZXU8_FhA8XEm8NTm3-SO+3ML1B81Hkww@mail.gmail.com
2017-03-26 22:02:22 -04:00
..
access Improve performance of ExecEvalWholeRowVar. 2017-03-26 19:14:57 -04:00
bootstrap Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
catalog Show more processes in pg_stat_activity. 2017-03-26 22:02:22 -04:00
commands Implement multivariate n-distinct coefficients 2017-03-24 14:06:10 -03:00
common Sync pg_dump and pg_dumpall output 2017-03-22 10:20:13 -04:00
datatype Consistently declare timestamp variables as TimestampTz. 2017-02-23 15:57:08 -05:00
executor Faster expression evaluation and targetlist projection. 2017-03-25 14:52:06 -07:00
fe_utils Add a "void *" passthrough pointer for psqlscan.l's callback functions. 2017-03-13 17:14:46 -04:00
foreign Allow custom and foreign scans to have shutdown callbacks. 2017-02-26 13:41:12 +05:30
lib Make simplehash.h grow hashtable in additional cases. 2017-03-06 14:13:06 -08:00
libpq Allow SCRAM authentication, when pg_hba.conf says 'md5'. 2017-03-24 13:32:21 +02:00
mb ICU support 2017-03-23 15:28:48 -04:00
nodes Faster expression evaluation and targetlist projection. 2017-03-25 14:52:06 -07:00
optimizer Don't scan partitioned tables. 2017-03-21 09:48:04 -04:00
parser Logical replication support for initial data copy 2017-03-23 08:55:37 -04:00
port Enable 64 bit atomics on ARM64. 2017-03-10 11:19:54 -08:00
portability Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
postmaster Add pg_current_logfile() function. 2017-03-03 11:43:11 +05:30
regex Document intentional violations of header inclusion policy. 2017-03-08 17:01:13 -05:00
replication Fix typos in logical replication support for initial data copy. 2017-03-26 17:44:35 -04:00
rewrite Remove deprecated COMMENT ON RULE syntax 2017-02-23 08:19:52 -05:00
snowball Document intentional violations of header inclusion policy. 2017-03-08 17:01:13 -05:00
statistics Implement multivariate n-distinct coefficients 2017-03-24 14:06:10 -03:00
storage Show more processes in pg_stat_activity. 2017-03-26 22:02:22 -04:00
tcop Allow for parallel execution whenever ExecutorRun() is done only once. 2017-03-23 13:14:36 -04:00
tsearch Fix typos in comments. 2017-02-06 11:33:58 +02:00
utils Fix cpluspluscheck warning 2017-03-26 18:31:05 -04:00
.gitignore Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
c.h Recommend wrappers of PG_DETOAST_DATUM_PACKED(). 2017-03-12 19:35:33 -04:00
fmgr.h Faster expression evaluation and targetlist projection. 2017-03-25 14:52:06 -07:00
funcapi.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
getaddrinfo.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
getopt_long.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Makefile Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
miscadmin.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pg_config.h.in ICU support 2017-03-23 15:28:48 -04:00
pg_config.h.win32 Add configure test to see if the C compiler has gcc-style computed gotos. 2017-03-20 13:35:26 -04:00
pg_config_ext.h.in Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_ext.h.win32 Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_manual.h Fix default minimum value for descending sequences 2017-01-23 14:00:58 -05:00
pg_getopt.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pg_trace.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pgstat.h Show more processes in pg_stat_activity. 2017-03-26 22:02:22 -04:00
pgtar.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pgtime.h Fix incorrect comment: pgtime's tm_mon is 1-based, not 0-based. 2017-01-24 09:36:17 -05:00
port.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
postgres.h Recommend wrappers of PG_DETOAST_DATUM_PACKED(). 2017-03-12 19:35:33 -04:00
postgres_ext.h Move atooid() definition to a central place 2017-03-01 11:55:28 -05:00
postgres_fe.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
rusagestub.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
windowapi.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00