aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/llvmjit_error.cpp
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-02-06 09:18:06 +0900
committerMichael Paquier <michael@paquier.xyz>2020-02-06 09:18:06 +0900
commitb025f32e0b5d7668daec9bfa957edf3599f4baa8 (patch)
treef0bf150285ba5f704826db1910c675b63a9a1ff2 /src/backend/jit/llvm/llvmjit_error.cpp
parentbf6cc19e347d4cb8dfc8f05a59171ac06e18b5e5 (diff)
downloadpostgresql-b025f32e0b5d7668daec9bfa957edf3599f4baa8.tar.gz
postgresql-b025f32e0b5d7668daec9bfa957edf3599f4baa8.zip
Add leader_pid to pg_stat_activity
This new field tracks the PID of the group leader used with parallel query. For parallel workers and the leader, the value is set to the PID of the group leader. So, for the group leader, the value is the same as its own PID. Note that this reflects what PGPROC stores in shared memory, so as leader_pid is NULL if a backend has never been involved in parallel query. If the backend is using parallel query or has used it at least once, the value is set until the backend exits. Author: Julien Rouhaud Reviewed-by: Sergei Kornilov, Guillaume Lelarge, Michael Paquier, Tomas Vondra Discussion: https://postgr.es/m/CAOBaU_Yy5bt0vTPZ2_LUM6cUcGeqmYNoJ8-Rgto+c2+w3defYA@mail.gmail.com
Diffstat (limited to 'src/backend/jit/llvm/llvmjit_error.cpp')
0 files changed, 0 insertions, 0 deletions