summaryrefslogtreecommitdiff
path: root/src/backend/statistics/relation_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/statistics/relation_stats.c')
-rw-r--r--src/backend/statistics/relation_stats.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/backend/statistics/relation_stats.c b/src/backend/statistics/relation_stats.c
index 2c1cea3fc80..52dfa477187 100644
--- a/src/backend/statistics/relation_stats.c
+++ b/src/backend/statistics/relation_stats.c
@@ -127,13 +127,7 @@ relation_statistics_update(FunctionCallInfo fcinfo)
ctup = SearchSysCache1(RELOID, ObjectIdGetDatum(reloid));
if (!HeapTupleIsValid(ctup))
- {
- ereport(WARNING,
- (errcode(ERRCODE_OBJECT_IN_USE),
- errmsg("pg_class entry for relid %u not found", reloid)));
- table_close(crel, RowExclusiveLock);
- return false;
- }
+ elog(ERROR, "pg_class entry for relid %u not found", reloid);
pgcform = (Form_pg_class) GETSTRUCT(ctup);