Search Postgresql Archives

Transactions, stats and analyze (oh-my)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We have certain processes that import data then process and distribute the data. Since the processing looks primarily, but not exclusively, at the new records an ANALYZE prior to processing yields better plans. Although the table changes will trigger autovacuum to analyze the table this happens too late to be of use for the subsequent processing so we run an explicit analyze (which, when it collides with autovacuum, triggers a warning in the logs).

I would like to roll a number of steps into a transaction. What happens to the stats data generated by ANALYZE if the transaction is rolled back?

This message says the stats are reverted:
http://postgresql.nabble.com/Analyze-during-a-transaction-td5775069.html

This implies they are not:
http://www.postgresql.org/message-id/E1XjbTw-0002f9-Ri@xxxxxxxxxxxxxxxxxxxxxx

Cheers,
Steve


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux