Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80390f4

Browse files
committed
Improve phrasing of warning message for NOTIFY queue getting too full.
Per gripe from Peter.
1 parent 87ecae7 commit 80390f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/commands/async.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/commands/async.c,v 1.155 2010/02/26 02:00:37 momjian Exp $
10+
* $PostgreSQL: pgsql/src/backend/commands/async.c,v 1.156 2010/04/05 00:42:24 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1421,12 +1421,12 @@ asyncQueueFillWarning(void)
14211421
}
14221422

14231423
ereport(WARNING,
1424-
(errmsg("pg_notify queue is %.0f%% full", fillDegree * 100),
1424+
(errmsg("NOTIFY queue is %.0f%% full", fillDegree * 100),
14251425
(minPid != InvalidPid ?
1426-
errdetail("PID %d is among the slowest backends.", minPid)
1426+
errdetail("The server process with PID %d is among those with the oldest transactions.", minPid)
14271427
: 0),
14281428
(minPid != InvalidPid ?
1429-
errhint("Cleanup can only proceed if this backend ends its current transaction.")
1429+
errhint("The NOTIFY queue cannot be emptied until that process ends its current transaction.")
14301430
: 0)));
14311431

14321432
asyncQueueControl->lastQueueFillWarn = t;

0 commit comments

Comments
 (0)