[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-general
Subject:    Autovacuum on Partitioned Tables
From:       Ryan Ruenroeng <rruenroeng () gmail ! com>
Date:       2022-10-31 22:26:20
Message-ID: CAEuohQp_iK8jKceQ1BUKZWtzhz4F=utke1WcYqK31ZAV4FV-Og () mail ! gmail ! com
[Download RAW message or body]

Hello there!

There is a statement in the Postgres Docs: "Partitioned tables are not
processed by autovacuum."

What does the above statement mean?
Does autovacuum not process both the parent and the child tables in a
partition relationship?

What is the definition of a partitioned table?

I have a table with 50+ million rows that gets data added to/wiped from it
every 90 days. We are planning to break this table into a few thousand
partitions. More partitions will likely be added in the future, but we
don't have plans to delete any of the partitions. Will we need to manually
track the statistics of these partitions and manually vacuum the tables or
will autovacuum help to manage them?

Best,
Ryan

Ryan N Ruenroeng (He/His)
(717) 578-3929
| RRuenroeng@gmail.com
| Madison, WI <https://maps.google.com/?q=Madison,%20WI>
<https://github.com/rruenroeng> <https://www.facebook.com/ryan.ruenroeng>
<https://www.linkedin.com/in/ryan-ruenroeng>

[Attachment #3 (text/html)]

<div dir="ltr">Hello there!<div><br><div>There is a statement in the Postgres Docs: \
&quot;Partitioned tables are not processed by \
autovacuum.&quot;</div><div><br></div><div>What does the above statement \
mean?</div><div>Does autovacuum not process both the parent and the child tables in a \
partition relationship?  </div><div><br></div><div>What is the definition of a \
partitioned table?</div><div><br></div><div>I have a table with 50+ million rows that \
gets data added to/wiped from it every 90 days. We are planning to break this table \
into a few thousand partitions. More partitions will likely be added in the future, \
but we don&#39;t have plans to delete any of the partitions. Will we need to manually \
track the statistics of these partitions and manually vacuum the tables or will \
autovacuum help to manage \
them?</div><div><br></div><div>Best,<br>Ryan</div><div></div><div><div><div dir="ltr" \
class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><br><table \
cellpadding="0" cellspacing="0" \
style="color:rgb(0,0,0);font-family:Arial;font-size:16px;border-collapse:collapse"><tbody><tr><td \
style="line-height:1.2;padding:0.01px 0.01px 12px"><font face="verdana, \
sans-serif"><span style="text-transform:initial;font-weight:bold"><span \
style="color:rgb(100,100,100);font-size:15.6px">Ryan N Ruenroeng \
(He/His)</span></span><br></font></td></tr><tr><td \
style="padding:0.01px;line-height:0"><table cellpadding="0" cellspacing="0" \
style="border-collapse:collapse"><tbody><tr><td style="padding:0.01px"><table \
cellpadding="0" cellspacing="0" style="border-collapse:collapse"><tbody><tr><td \
style="line-height:0px;padding:0.01px 0.01px 6px"><table cellpadding="0" \
cellspacing="0" style="border-collapse:collapse;line-height:14px;font-size:12px"><tbody><tr><td \
style="padding:0.01px"><a href="tel:(717)+578-3929" style="text-decoration:unset" \
target="_blank"><span \
style="line-height:1.2;color:rgb(33,33,33);white-space:nowrap"><font face="verdana, \
sans-serif">(717) 578-3929</font></span></a></td></tr></tbody></table></td><td \
style="line-height:0px;padding:0.01px 0.01px 6px"><table cellpadding="0" \
cellspacing="0" style="border-collapse:collapse;line-height:14px;font-size:12px"><tbody><tr><td \
style="padding:0px 6px"><span \
style="font-weight:bold;color:rgb(33,33,33);vertical-align:2px"><font face="verdana, \
sans-serif">|  </font><a href="mailto:RRuenroeng@gmail.com" \
style="font-family:Arial,Helvetica,sans-serif;font-size:small;font-weight:400" \
target="_blank">RRuenroeng@gmail.com</a><font face="verdana, \
sans-serif"><br></font></span></td><td \
style="padding:0.01px"></td></tr></tbody></table></td><td \
style="line-height:0px;padding:0.01px 0.01px 6px"><table cellpadding="0" \
cellspacing="0" style="border-collapse:collapse;line-height:14px;font-size:12px"><tbody><tr><td \
style="padding:0px 6px"><span \
style="font-weight:bold;color:rgb(33,33,33);vertical-align:2px"><font face="verdana, \
sans-serif">|</font></span></td><td style="padding:0.01px"><a \
href="https://maps.google.com/?q=Madison,%20WI" style="text-decoration:unset" \
target="_blank"><span \
style="line-height:1.2;color:rgb(33,33,33);white-space:nowrap"><font face="verdana, \
sans-serif">Madison, \
WI</font></span></a></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr><td \
style="padding:12px 0.01px 0.01px"><table cellpadding="0" cellspacing="0" \
style="border-collapse:collapse;width:314.375px"><tbody><tr><td \
style="padding:0.01px"><table border="0" cellpadding="0" \
cellspacing="0"><tbody><tr><td align="left" \
style="padding-right:6px;text-align:center;padding-top:0px"><a \
href="https://github.com/rruenroeng" target="_blank"><font face="verdana, \
sans-serif"><img width="16" height="16" \
src="https://cdn.gifo.wisestamp.com/social/github/4183c4/32/0/background.png" \
border="0" style="float:left;border:none"></font></a></td><td align="left" \
style="padding-right:6px;text-align:center;padding-top:0px"><a \
href="https://www.facebook.com/ryan.ruenroeng" target="_blank"><font face="verdana, \
sans-serif"><img width="16" height="16" \
src="https://cdn.gifo.wisestamp.com/social/facebook/3b5998/32/0/background.png" \
border="0" style="float:left;border:none"></font></a></td><td align="left" \
style="padding-right:6px;text-align:center;padding-top:0px"><a \
href="https://www.linkedin.com/in/ryan-ruenroeng" target="_blank"><font \
face="verdana, sans-serif"><img width="16" height="16" \
src="https://cdn.gifo.wisestamp.com/social/linkedin/0077b5/32/0/background.png" \
border="0" style="float:left;border:none"></font></a></td></tr></tbody></table></td></ \
tr></tbody></table></td></tr></tbody></table></div></div></div></div></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic