Skip to content

Commit 5a71b64

Browse files
committed
Lowercase status labels in pg_stat_replication view.
1 parent 44e4bbf commit 5a71b64

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/backend/replication/walsender.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,13 +1350,13 @@ WalSndGetStateString(WalSndState state)
13501350
switch (state)
13511351
{
13521352
case WALSNDSTATE_STARTUP:
1353-
return "STARTUP";
1353+
return "startup";
13541354
case WALSNDSTATE_BACKUP:
1355-
return "BACKUP";
1355+
return "backup";
13561356
case WALSNDSTATE_CATCHUP:
1357-
return "CATCHUP";
1357+
return "catchup";
13581358
case WALSNDSTATE_STREAMING:
1359-
return "STREAMING";
1359+
return "streaming";
13601360
}
13611361
return "UNKNOWN";
13621362
}
@@ -1501,11 +1501,11 @@ pg_stat_get_wal_senders(PG_FUNCTION_ARGS)
15011501
* informational, not different from priority.
15021502
*/
15031503
if (sync_priority[i] == 0)
1504-
values[7] = CStringGetTextDatum("ASYNC");
1504+
values[7] = CStringGetTextDatum("async");
15051505
else if (i == sync_standby)
1506-
values[7] = CStringGetTextDatum("SYNC");
1506+
values[7] = CStringGetTextDatum("sync");
15071507
else
1508-
values[7] = CStringGetTextDatum("POTENTIAL");
1508+
values[7] = CStringGetTextDatum("potential");
15091509
}
15101510

15111511
tuplestore_putvalues(tupstore, tupdesc, values, nulls);

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