Skip to content

Commit 35a015a

Browse files
committed
Fixup for pg_set_relation_stats().
Reported-by: Noriyoshi Shinoda Discussion: https://postgr.es/m/DM4PR84MB17345E2DFF28A5557B7CBC3CEE7A2@DM4PR84MB1734.NAMPRD84.PROD.OUTLOOK.COM
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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy