Re: Allowing REINDEX to have an optional name
Simon Riggs <simon.riggs@enterprisedb.com>
From: Simon Riggs <simon.riggs@enterprisedb.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>,
Bernd Helmle <mailings@oopsware.de>, Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Date: 2022-06-28T10:02:25Z
Lists: pgsql-hackers
Attachments
- reindex_not_require_database_name.v3.patch (application/octet-stream) patch v3
On Tue, 28 Jun 2022 at 08:29, Simon Riggs <simon.riggs@enterprisedb.com> wrote: > > On Thu, 2 Jun 2022 at 01:02, Michael Paquier <michael@paquier.xyz> wrote: > > > > On Tue, May 31, 2022 at 02:30:32PM +0200, Alvaro Herrera wrote: > > > I was thinking the opposite: REINDEX DATABASE with or without a database > > > name should always process the user relations and skip system catalogs. > > > If the user wants to do both, then they can use REINDEX SYSTEM in > > > addition. > > > > > > The reason for doing it like this is that there is no way to process > > > only user tables and skip catalogs. So this is better for > > > composability. > > > > No objections from me to keep this distinction at the end, as long as > > the the database name in the command has no impact on the chosen > > behavior. > > OK, that's clear. Will progress. Attached patch is tested, documented and imho ready to be committed, so I will mark it so in CFapp. -- Simon Riggs http://www.EnterpriseDB.com/
Commits
-
Tweak a bit the new TAP tests of REINDEX DATABASE/SYSTEM
- 2b99ce10c2bc 16.0 landed
-
Rework logic and simplify syntax of REINDEX DATABASE/SYSTEM
- 2cbc3c17a5c1 16.0 landed
-
Add more tests for REINDEX DATABASE/SYSTEM with relfilenode changes
- 5fb5b6c4c176 16.0 landed