Re: Use IsA() macro instead of nodeTag comparison
Heikki Linnakangas <hlinnaka@iki.fi>
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Kirill Reshke <reshkekirill@gmail.com>,
Shinya Kato <shinya11.kato@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-01-08T17:11:29Z
Lists: pgsql-hackers
On 08/01/2026 15:10, Kirill Reshke wrote: > On Thu, 8 Jan 2026 at 17:31, Shinya Kato <shinya11.kato@gmail.com> wrote: >> In copy.c, nodeTag was being compared directly, so I replaced it with >> the IsA() predicate macro for consistency. > > Oops. Looks like oversight in 6c8f670. This is indeed case where we > should use IsA() > >> I verified that there are no other direct comparisons left by running >> the following command: >> $ git grep "nodeTag(.*) ==" > > Yep, look like this is the only case in copy.c Pushed, thanks - Heikki
Commits
-
Use IsA() macro in define.c, for sake of consistency.
- 24cb3a08a43b 19 (unreleased) landed
-
Use IsA macro, for sake of consistency
- 63d1b1cf7f1e 19 (unreleased) landed