Re: silence compiler warning in brin.c
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Zhihong Yu <zyu@yugabyte.com>
Cc: Nathan Bossart <nathandbossart@gmail.com>,
PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2022-06-01T17:55:52Z
Lists: pgsql-hackers
Zhihong Yu <zyu@yugabyte.com> writes: > Hi, > if (heapRel == NULL || heapoid != IndexGetRelation(indexoid, false)) > ereport(ERROR, > I wonder why the above check is not placed in the else block: > else > heapRel = NULL; Because we don't want to throw that error until we've exhausted the possibilities for throwing other errors. regards, tom lane
Commits
-
Silence compiler warnings from some older compilers.
- dd672be38d39 12.12 landed
- dd1c8dd1015f 15.0 landed
- c05118014776 10.22 landed
- 60ca2e8418a1 13.8 landed
- 4e467261560f 14.4 landed
- 37290f7f5a9a 11.17 landed