postgresql/src/backend/access
Peter Eisentraut bf68b79e50 Refactor ps_status.c API
The init_ps_display() arguments were mostly lies by now, so to match
typical usage, just use one argument and let the caller assemble it
from multiple sources if necessary.  The only user of the additional
arguments is BackendInitialize(), which was already doing string
assembly on the caller side anyway.

Remove the second argument of set_ps_display() ("force") and just
handle that in init_ps_display() internally.

BackendInitialize() also used to set the initial status as
"authentication", but that was very far from where authentication
actually happened.  So now it's set to "initializing" and then
"authentication" just before the actual call to
ClientAuthentication().

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-11 16:38:31 +01:00
..
brin Remove utils/acl.h from catalog/objectaddress.h 2020-03-10 10:27:00 +01:00
common Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
gin Simplify/speed up assertion cross-check in ginCompressPostingList(). 2020-03-07 13:31:17 -05:00
gist Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
hash Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
heap Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
index Add deduplication to nbtree. 2020-02-26 13:05:30 -08:00
nbtree nbtree: Move fastpath NULL descent stack assertion. 2020-03-10 17:25:47 -07:00
rmgrdesc Add deduplication to nbtree. 2020-02-26 13:05:30 -08:00
spgist Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
table Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
tablesample Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
transam Refactor ps_status.c API 2020-03-11 16:38:31 +01:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00