Content-Length: 265658 | pFad | http://github.com/postgrespro/postgres/commit/35a015a60045c2daa532c7a9545818856f09d57a

08 Fixup for pg_set_relation_stats(). · postgrespro/postgres@35a015a · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/35a015a60045c2daa532c7a9545818856f09d57a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy