RE: Support for VACUUMing Foreign Tables

2021-05-16 Thread tsunakawa.ta...@fujitsu.com
From: Bharath Rupireddy > This can be useful in situations like where there are many remote > postgres servers that are connected to a single coordinator on which > foreign tables are defined for each of the remote tables. In this > case, the DBA (or whoever is responsible to do that job) doesn't

Re: Support for VACUUMing Foreign Tables

2021-05-14 Thread Laurenz Albe
On Thu, 2021-05-13 at 09:44 +0530, Bharath Rupireddy wrote: > I think it will be useful to allow foreign tables to be VACUUMed if > the underlying FDW supports, currently VACUUM doesn't support foreign > tables, see [1]. In case of postgres_fdw, if foreign tables are > specified in the local VACUUM

Re: Support for VACUUMing Foreign Tables

2021-05-13 Thread Bharath Rupireddy
On Fri, May 14, 2021 at 11:48 AM Dilip Kumar wrote: > > On Fri, May 14, 2021 at 6:35 AM tsunakawa.ta...@fujitsu.com > wrote: > > > > From: Bharath Rupireddy > > > I think it will be useful to allow foreign tables to be VACUUMed if > > > the underlying FDW supports, currently VACUUM doesn't suppo

Re: Support for VACUUMing Foreign Tables

2021-05-13 Thread Bharath Rupireddy
On Fri, May 14, 2021 at 6:35 AM tsunakawa.ta...@fujitsu.com wrote: > > From: Bharath Rupireddy > > I think it will be useful to allow foreign tables to be VACUUMed if > > the underlying FDW supports, currently VACUUM doesn't support foreign > > tables, see [1]. > > Could you let us imagine more c

Re: Support for VACUUMing Foreign Tables

2021-05-13 Thread Dilip Kumar
On Fri, May 14, 2021 at 6:35 AM tsunakawa.ta...@fujitsu.com wrote: > > From: Bharath Rupireddy > > I think it will be useful to allow foreign tables to be VACUUMed if > > the underlying FDW supports, currently VACUUM doesn't support foreign > > tables, see [1]. > > Could you let us imagine more c

Re: Support for VACUUMing Foreign Tables

2021-05-13 Thread Michael Paquier
On Fri, May 14, 2021 at 01:05:02AM +, tsunakawa.ta...@fujitsu.com wrote: > Could you let us imagine more concretely how useful it will be? > While TRUNCATE can be part of an application's data processing as > alternative to DELETE, I think VACUUM is purely the data storage > maintenance that's

RE: Support for VACUUMing Foreign Tables

2021-05-13 Thread tsunakawa.ta...@fujitsu.com
From: Bharath Rupireddy > I think it will be useful to allow foreign tables to be VACUUMed if > the underlying FDW supports, currently VACUUM doesn't support foreign > tables, see [1]. Could you let us imagine more concretely how useful it will be? While TRUNCATE can be part of an application's

Support for VACUUMing Foreign Tables

2021-05-12 Thread Bharath Rupireddy
Hi, I think it will be useful to allow foreign tables to be VACUUMed if the underlying FDW supports, currently VACUUM doesn't support foreign tables, see [1]. In case of postgres_fdw, if foreign tables are specified in the local VACUUM command, a per-server remote VACUUM command can be prepared wi