I'm running Postgres 12 on AWS RDS and monitoring it with pgAdmin
. This is a read-only replica of the production database.
I have a weird session with not much info, only: backend_type = startup
, PID
, and backend_start
. All other columns in pg_stat_activity
are null
, also no user
or database
info (looking at pgAdmin session dashboard). This session will sometimes hold a few exclusive locks on a particular view and maybe some tables. The queries that get blocked by these locks aren't critical so canceling them is a temporary measure but it's still annoying to deal with because it can trigger replica lags. After some time (a week?) the locks are released until they're created again. The session has been running for a few months now.
My questions are:
- Did anyone come across this
startup
process? - Can anyone recommend tables or commands for psql I can run to try getting additional info for this PID? I mostly checked
pg_stat_activity
. - Random searching for
postgres startup process
also indicates that this process shouldn't exist after postgres starts up. Should I consider killing the session?