Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit35a015a

Browse files
committed
Fixup for pg_set_relation_stats().
Reported-by: Noriyoshi ShinodaDiscussion:https://postgr.es/m/DM4PR84MB17345E2DFF28A5557B7CBC3CEE7A2@DM4PR84MB1734.NAMPRD84.PROD.OUTLOOK.COM
1 parentc0b7432 commit35a015a

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
int32relpages=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)

[8]ページ先頭

©2009-2025 Movatter.jp