diff options
author | Peter Eisentraut | 2020-03-11 15:36:40 +0000 |
---|---|---|
committer | Peter Eisentraut | 2020-03-13 13:01:10 +0000 |
commit | 8e8a0becb335529c66a9f82f88e1419e49b458ae (patch) | |
tree | 20eb3ec548fcf2d37ae150f44c1c7949ee9fda5a /src/include/postgres.h | |
parent | 1cc9c2412cc9a2fbe6a381170097d315fd40ccca (diff) |
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
Diffstat (limited to 'src/include/postgres.h')
0 files changed, 0 insertions, 0 deletions