Re: autovacuum: change priority of the vacuumed tables

2022-01-14 Thread Marco Garavello
Hello all, I've just read this thread as I googled for "*how to give to autovacuum priority on a table*" I'm looking this because I have large table with lot of inserts/updates, and to improve the system I want to force the first free autovacuum worker to work on that table, of course if condition

Re: autovacuum: change priority of the vacuumed tables

2018-03-03 Thread Tomas Vondra
On 03/03/2018 10:21 PM, Jim Nasby wrote: > On 3/3/18 2:53 PM, Tomas Vondra wrote: >> That largely depends on what knobs would be exposed. I'm against adding >> some low-level knobs that perhaps 1% of the users will know how to tune, >> and the rest will set it incorrectly. Some high-level options

Re: autovacuum: change priority of the vacuumed tables

2018-03-03 Thread Jim Nasby
On 3/3/18 2:53 PM, Tomas Vondra wrote: That largely depends on what knobs would be exposed. I'm against adding some low-level knobs that perhaps 1% of the users will know how to tune, and the rest will set it incorrectly. Some high-level options that would specify the workload type might work, bu

Re: autovacuum: change priority of the vacuumed tables

2018-03-03 Thread Tomas Vondra
On 03/03/2018 08:32 PM, Jim Nasby wrote: > On 2/19/18 10:00 AM, Tomas Vondra wrote: >> So I don't think this is a very promising approach, unfortunately. >> >> What I think might work is having a separate pool of autovac workers, >> dedicated to these high-priority tables. That still would not guar

Re: autovacuum: change priority of the vacuumed tables

2018-03-03 Thread Jim Nasby
On 2/19/18 10:00 AM, Tomas Vondra wrote: So I don't think this is a very promising approach, unfortunately. What I think might work is having a separate pool of autovac workers, dedicated to these high-priority tables. That still would not guarantee the high-priority tables are vacuumed immediat

Re: autovacuum: change priority of the vacuumed tables

2018-03-02 Thread David Steele
On 3/2/18 4:07 AM, Ildus Kurbangaliev wrote: > On Thu, 1 Mar 2018 23:39:34 -0800 > Andres Freund wrote: > >> Hi, >> >> On 2018-02-19 17:00:34 +0100, Tomas Vondra wrote: >>> I have a hard time understanding how adding yet another autovacuum >>> table-level knob makes the DBA's life any easier. Esp

Re: autovacuum: change priority of the vacuumed tables

2018-03-02 Thread Ildus Kurbangaliev
On Thu, 1 Mar 2018 23:39:34 -0800 Andres Freund wrote: > Hi, > > On 2018-02-19 17:00:34 +0100, Tomas Vondra wrote: > > I have a hard time understanding how adding yet another autovacuum > > table-level knob makes the DBA's life any easier. Especially when > > the behavior is so unreliable and do

Re: autovacuum: change priority of the vacuumed tables

2018-03-01 Thread Andres Freund
Hi, On 2018-02-19 17:00:34 +0100, Tomas Vondra wrote: > I have a hard time understanding how adding yet another autovacuum > table-level knob makes the DBA's life any easier. Especially when the > behavior is so unreliable and does not really guarantee when the > high-priority table will be cleane

Re: autovacuum: change priority of the vacuumed tables

2018-02-19 Thread Tomas Vondra
On 02/19/2018 03:38 PM, Ildus Kurbangaliev wrote: > On Fri, 16 Feb 2018 21:48:14 +0900 > Masahiko Sawada wrote: > >> On Fri, Feb 16, 2018 at 7:50 PM, Ildus Kurbangaliev >> wrote: >>> On Fri, 16 Feb 2018 17:42:34 +0900 >>> Masahiko Sawada wrote: >>> On Thu, Feb 15, 2018 at 10:16 PM, Gri

Re: autovacuum: change priority of the vacuumed tables

2018-02-19 Thread Ildus Kurbangaliev
On Fri, 16 Feb 2018 21:48:14 +0900 Masahiko Sawada wrote: > On Fri, Feb 16, 2018 at 7:50 PM, Ildus Kurbangaliev > wrote: > > On Fri, 16 Feb 2018 17:42:34 +0900 > > Masahiko Sawada wrote: > > > >> On Thu, Feb 15, 2018 at 10:16 PM, Grigory Smolkin > >> wrote: > >> > On 02/15/2018 09:28 AM, M

Re: autovacuum: change priority of the vacuumed tables

2018-02-16 Thread Masahiko Sawada
On Fri, Feb 16, 2018 at 7:50 PM, Ildus Kurbangaliev wrote: > On Fri, 16 Feb 2018 17:42:34 +0900 > Masahiko Sawada wrote: > >> On Thu, Feb 15, 2018 at 10:16 PM, Grigory Smolkin >> wrote: >> > On 02/15/2018 09:28 AM, Masahiko Sawada wrote: >> > >> >> Hi, >> >> >> >> On Thu, Feb 8, 2018 at 11:01 PM

Re: autovacuum: change priority of the vacuumed tables

2018-02-16 Thread Ildus Kurbangaliev
On Fri, 16 Feb 2018 17:42:34 +0900 Masahiko Sawada wrote: > On Thu, Feb 15, 2018 at 10:16 PM, Grigory Smolkin > wrote: > > On 02/15/2018 09:28 AM, Masahiko Sawada wrote: > > > >> Hi, > >> > >> On Thu, Feb 8, 2018 at 11:01 PM, Ildus Kurbangaliev > >> wrote: > >>> > >>> Hi, > >>> > >>> Attach

Re: autovacuum: change priority of the vacuumed tables

2018-02-16 Thread Masahiko Sawada
On Thu, Feb 15, 2018 at 10:16 PM, Grigory Smolkin wrote: > On 02/15/2018 09:28 AM, Masahiko Sawada wrote: > >> Hi, >> >> On Thu, Feb 8, 2018 at 11:01 PM, Ildus Kurbangaliev >> wrote: >>> >>> Hi, >>> >>> Attached patch adds 'autovacuum_table_priority' to the current list of >>> automatic vacuuming

Re: autovacuum: change priority of the vacuumed tables

2018-02-15 Thread Grigory Smolkin
On 02/15/2018 09:28 AM, Masahiko Sawada wrote: Hi, On Thu, Feb 8, 2018 at 11:01 PM, Ildus Kurbangaliev wrote: Hi, Attached patch adds 'autovacuum_table_priority' to the current list of automatic vacuuming settings. It's used in sorting of vacuumed tables in autovacuum worker before actual va

Re: autovacuum: change priority of the vacuumed tables

2018-02-14 Thread Masahiko Sawada
Hi, On Thu, Feb 8, 2018 at 11:01 PM, Ildus Kurbangaliev wrote: > Hi, > > Attached patch adds 'autovacuum_table_priority' to the current list of > automatic vacuuming settings. It's used in sorting of vacuumed tables in > autovacuum worker before actual vacuum. > > The idea is to give possibility

autovacuum: change priority of the vacuumed tables

2018-02-08 Thread Ildus Kurbangaliev
Hi, Attached patch adds 'autovacuum_table_priority' to the current list of automatic vacuuming settings. It's used in sorting of vacuumed tables in autovacuum worker before actual vacuum. The idea is to give possibility to the users to prioritize their tables in autovacuum process. -- --- Regar