postgresql/src/backend/utils
Peter Eisentraut 8e8a0becb3 Unify several ways to tracking backend type
Add a new global variable MyBackendType that uses the same BackendType
enum that was previously only used by the stats collector.  That way
several duplicate ways of checking what type a particular process is
can be simplified.  Since it's no longer just for stats, move to
miscinit.c and rename existing functions to match the expanded
purpose.

Reviewed-by: Julien Rouhaud <rjuju123@gmail.com>
Reviewed-by: Kuntal Ghosh <kuntalghosh.2007@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/c65e5196-4f04-4ead-9353-6088c19615a3@2ndquadrant.com
2020-03-13 14:01:10 +01:00
..
adt Unify several ways to tracking backend type 2020-03-13 14:01:10 +01:00
cache Preserve replica identity index across ALTER TABLE rewrite 2020-03-13 11:57:06 +01:00
error Update copyrights for 2020 2020-01-01 12:21:45 -05:00
fmgr Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
hash Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
init Unify several ways to tracking backend type 2020-03-13 14:01:10 +01:00
mb Marginal comments and docs cleanup. 2020-03-10 17:34:09 -04:00
misc Unify several ways to tracking backend type 2020-03-13 14:01:10 +01:00
mmgr Represent command completion tags as structs 2020-03-02 18:19:51 -03:00
resowner Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
sort Introduce LogicalTapeSetExtend(). 2020-03-09 10:40:02 -07:00
time Update copyrights for 2020 2020-01-01 12:21:45 -05:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
errcodes.txt Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Gen_dummy_probes.pl Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Gen_dummy_probes.sed Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Gen_fmgrtab.pl Update copyrights for 2020 2020-01-01 12:21:45 -05:00
generate-errcodes.pl Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
probes.d Update copyrights for 2020 2020-01-01 12:21:45 -05:00