Re: Bug in reindexdb's error reporting
Julien Rouhaud <rjuju123@gmail.com>
From: Julien Rouhaud <rjuju123@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Alvaro Herrera <alvherre@2ndquadrant.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-05-11T08:28:43Z
Lists: pgsql-hackers
Attachments
- 0002-merge_reindex_system_catalogs-v1.diff (text/x-patch) patch v1-0002
- 0001-use_enum-v1.diff (text/x-patch) patch v1-0001
On Sat, May 11, 2019 at 6:04 AM Michael Paquier <michael@paquier.xyz> wrote: > > On Fri, May 10, 2019 at 09:25:58PM -0400, Tom Lane wrote: > > Michael Paquier <michael@paquier.xyz> writes: > > > The refactoring bits are fine for HEAD. For back-branches I would > > > suggest using the simplest patch of upthread. > > > > Makes sense to me too. The refactoring is mostly to make future > > additions easier, so there's not much point for back branches. > > For now, I have committed and back-patched all the way down the bug > fix. Thanks! > The refactoring is also kind of nice so I'll be happy to look at > an updated patch. At the same time, let's get rid of > reindex_system_catalogs() and integrate it with reindex_one_database() > with a REINDEX_SYSTEM option in the enum. Julien, could you send a > new version? Yes, I had further refactoring in mind including this one (there are also quite some parameters passed to the functions, passing a struct instead could be worthwhile), but I thought this should be better done after branching. > > Right. Also, I was imagining folding the steps together while > > building the commands so that there's just one switch() for that, > > along the lines of > > Yes, that makes sense. Indeed. I attach the switch refactoring that applies on top of current HEAD, and the reindex_system_catalogs() removal in a different patch in case that's too much during feature freeze.
Commits
-
Fix error reporting in reindexdb
- 82ed20e15e52 9.4.23 landed
- e17fba8d8f13 9.5.18 landed
- 0c132d4581c2 9.6.14 landed
- c6354e94304c 10.9 landed
- e16ab408f3db 11.4 landed
- e51bad8fb4c3 12.0 landed