We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00941ee commit 1743778Copy full SHA for 1743778
src/backend/utils/cache/relcache.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/utils/cache/relcache.c,v 1.266 2008/01/01 19:45:53 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/cache/relcache.c,v 1.267 2008/02/27 17:44:19 tgl Exp $
12
13
*-------------------------------------------------------------------------
14
*/
@@ -2550,7 +2550,10 @@ RelationCacheInitializePhase2(void)
2550
2551
#define LOAD_CRIT_INDEX(indexoid) \
2552
do { \
2553
- ird = RelationBuildDesc((indexoid), NULL); \
+ ird = RelationBuildDesc(indexoid, NULL); \
2554
+ if (ird == NULL) \
2555
+ elog(PANIC, "could not open critical system index %u", \
2556
+ indexoid); \
2557
ird->rd_isnailed = true; \
2558
ird->rd_refcnt = 1; \
2559
} while (0)
0 commit comments