Skip to content

Commit 35a015a

Browse files
committed
1 parent c0b7432 commit 35a015a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/statistics/relation_stats.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ relation_statistics_update(FunctionCallInfo fcinfo, int elevel)
9999
{
100100
int32 relpages = PG_GETARG_INT32(RELPAGES_ARG);
101101

102-
if (relpages < -1)
102+
if (relpages < 0)
103103
{
104104
ereport(elevel,
105105
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
106-
errmsg("relpages cannot be < -1")));
106+
errmsg("relpages cannot be < 0")));
107107
table_close(crel, RowExclusiveLock);
108108
return false;
109109
}

0 commit comments

Comments
 (0)