Re: Autovacuum improvements
От | Tom Lane |
---|---|
Тема | Re: Autovacuum improvements |
Дата | |
Msg-id | 12993.1168805956@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Autovacuum improvements (Alvaro Herrera <alvherre@commandprompt.com>) |
Ответы |
Re: Autovacuum improvements
Re: Autovacuum improvements |
Список | pgsql-hackers |
Alvaro Herrera <alvherre@commandprompt.com> writes: > Hmm, right. The mentioned problems are: >> * manual ANALYZE issued by regression tests fails because autovac is >> analyzing the same table concurrently. This problem might have gone away since then --- I think we are now taking a lock to ensure only one ANALYZE per table at a time; so the manual ANALYZEs should only be delayed a bit not report errors. >> * contrib tests fail in their repeated drop/create database operations >> because autovac is connected to that database. (pl tests presumably >> have same issue.) The DROP is at risk, but CREATE is also at risk because autovac feels free to connect to template0. (One of the reasons we invented template0 was to prevent CREATE DATABASE failures due to someone-else-connected, but autovac has broken that idea.) Possibly we could handle these by extending create/drop db to check whether a process-connected-to-the-target-db is an autovac, and if so send it a SIGINT and wait for the process to terminate, instead of failing. regards, tom lane
В списке pgsql-hackers по дате отправления: