E
E
Evgeny Petrov2021-01-17 07:39:28
PostgreSQL
Evgeny Petrov, 2021-01-17 07:39:28

How to protect postgres database from bad request?

Hello!

A question that does not let you fall asleep: for example, there is a multimillion-dollar database, replication is configured in case the master fails. However, replication will not help if the database administrator mistakenly made an incorrect request (for example, UPDATE without WHERE, well, you never know, the human factor), since all requests to the master also go to the slave and as a result we get a pumpkin from two databases (then, of course, some who will be hanged). How can you protect yourself from this kind of error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-01-17
@kazsat

Backups and be sure to review all mutating requests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question