Configure autovacuum_vacuum_scale_factor on a PG table
14 views
Skip to first unread message
Jordan Pittier
unread,
Dec 4, 2019, 7:13:31 AM12/4/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlalchemy
Hi,
I am looking for a way to describe, in my Python model, that a table should have autovacuum_vacuum_scale_factor and autovacuum_analyze_scale_factor set to a non-default value. Similar to what the following statement would do:
ALTERTABLEpublic.XX SET (autovacuum_vacuum_scale_factor =0.1);
ALTERTABLEpublic.YY SET (autovacuum_analyze_scale_factor =0.05);
Any chance you would know how to do that ? Thanks Jordan
Simon King
unread,
Dec 4, 2019, 7:31:31 AM12/4/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlal...@googlegroups.com
I don't think there's any built-in support for that, but you could
certainly do it by listening for the "after_create" table event. See
the first example at: