Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Журналировать запросы, терминированные из pg_terminate_backend_*.sql #7

Open
rin-nas opened this issue Mar 16, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@rin-nas
Copy link
Owner

rin-nas commented Mar 16, 2023

При выполнении SQL запросов может возникнуть ошибка:

SQLSTATE[57P01]: Admin shutdown: 7 FATAL:  terminating connection due to administrator command
CONTEXT:  while updating tuple (35697,81) in relation "{table}"
FATAL:  server conn crashed?
server closed the connection unexpectedly
	This probably means the server terminated abnormally
	before or while processing the request.

Неочевидно, кто и почему терминировал запрос.
Их мог "прибить" запрос изpg_terminate_backend_idle.sql или pg_terminate_backend_lock.sql.
Это можно выяснить только по косвенным признакам, анализируя журнал запросов.
Нужно сделать так, чтобы терминированные запросы записывались в таблицу БД db_audit.pg_terminated_backend.

@rin-nas rin-nas added the enhancement New feature or request label Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant