Re: PATCH: Add REINDEX tag to event triggers
jian he <jian.universality@gmail.com>
From: jian he <jian.universality@gmail.com>
To: Jim Jones <jim.jones@uni-muenster.de>
Cc: Garrett Thornburg <film42@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2023-09-01T09:23:07Z
Lists: pgsql-hackers
Attachments
- v2-0002-Add-REINDEX-tag-to-event-triggers.patch (text/x-patch) patch v2-0002
On Wed, Aug 30, 2023 at 8:38 PM Jim Jones <jim.jones@uni-muenster.de> wrote: > > Greetings > > > > I was unable to apply it in 7ef5f5f > > $ git apply -v v2-0001-Add-REINDEX-tag-to-event-triggers.patch > Checking patch doc/src/sgml/event-trigger.sgml... > Checking patch src/backend/commands/indexcmds.c... > error: while searching for: > static List *ChooseIndexColumnNames(List *indexElems); > static void ReindexIndex(RangeVar *indexRelation, ReindexParams *params, > bool isTopLevel); > static void RangeVarCallbackForReindexIndex(const RangeVar *relation, > Oid relId, Oid oldRelId, void *arg); > static Oid ReindexTable(RangeVar *relation, ReindexParams *params, > > error: patch failed: src/backend/commands/indexcmds.c:94 > error: src/backend/commands/indexcmds.c: patch does not apply > Checking patch src/backend/tcop/utility.c... > Checking patch src/include/tcop/cmdtaglist.h... > Checking patch src/test/regress/expected/event_trigger.out... > Hunk #1 succeeded at 556 (offset 2 lines). > Checking patch src/test/regress/sql/event_trigger.sql... > > Am I missing something? > > Jim because the change made in here: https://git.postgresql.org/cgit/postgresql.git/diff/src/backend/commands/indexcmds.c?id=11af63fb48d278b86aa948a5b57f136ef03c2bb7 I manually slight edited the patch content: from static List *ChooseIndexColumnNames(List *indexElems); static void ReindexIndex(RangeVar *indexRelation, ReindexParams *params, bool isTopLevel); to static List *ChooseIndexColumnNames(const List *indexElems); static void ReindexIndex(const RangeVar *indexRelation, const ReindexParams *params, bool isTopLevel); can you try the attached one.
Commits
-
Fix assertion failure with REINDEX and event triggers
- c426f7c2b36a 17.0 landed
-
Add support for REINDEX in event triggers
- f21848de2013 17.0 landed
-
Doc: Improve documentation for creating custom scan paths.
- 7ef5f5fb3240 17.0 cited
-
Add const decorations
- 11af63fb48d2 17.0 cited