Dear All,
Thanks for your suggestions !
What will be work around to do routine manual “VACUUM ANALYZE” ? If I do only analyze on a table does it will generate WAL files ?
If we don’t do frequent “VACUUM ANALYZE” what are the possible impact on DB ?
Upgrading to higher version and planning for partitioning require series of approval’s and it takes more time to implement.
From: Keith Fiske <keith.fiske@xxxxxxxxxxxxxxx>
Date: Wednesday, November 28, 2018 at 9:17 PM To: "shreeyansh2014@xxxxxxxxx" <shreeyansh2014@xxxxxxxxx> Cc: moin <moindba@xxxxxxxxxxx>, "pgsql-admin@xxxxxxxxxxxxxxxxxxxx" <pgsql-admin@xxxxxxxxxxxxxxxxxxxx> Subject: Re: Manual Vacuum Analyze Take More Time On Wed, Nov 28, 2018 at 10:36 AM Shreeyansh Dba <shreeyansh2014@xxxxxxxxx> wrote:
You're probably just going to have to let it finish at least once. I'd also highly recommend looking into upgrading to at least Postgres 9.6. That one added a feature where if an entire page contains only frozen tuples, then vacuum is able to completely
skip over that page. For large tables, this can be a HUGE time saver. But you do have to get the table vacuumed with the FROZEN flag completed at least once to get those pages marked as such.
And as others have said, I would also consider jumping straight to PG 11 if you're upgrading so that you can take advantage of native partitioning.
|