mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Lowercase status labels in pg_stat_replication view.
This commit is contained in:
@ -1350,13 +1350,13 @@ WalSndGetStateString(WalSndState state)
|
|||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
case WALSNDSTATE_STARTUP:
|
case WALSNDSTATE_STARTUP:
|
||||||
return "STARTUP";
|
return "startup";
|
||||||
case WALSNDSTATE_BACKUP:
|
case WALSNDSTATE_BACKUP:
|
||||||
return "BACKUP";
|
return "backup";
|
||||||
case WALSNDSTATE_CATCHUP:
|
case WALSNDSTATE_CATCHUP:
|
||||||
return "CATCHUP";
|
return "catchup";
|
||||||
case WALSNDSTATE_STREAMING:
|
case WALSNDSTATE_STREAMING:
|
||||||
return "STREAMING";
|
return "streaming";
|
||||||
}
|
}
|
||||||
return "UNKNOWN";
|
return "UNKNOWN";
|
||||||
}
|
}
|
||||||
@ -1501,11 +1501,11 @@ pg_stat_get_wal_senders(PG_FUNCTION_ARGS)
|
|||||||
* informational, not different from priority.
|
* informational, not different from priority.
|
||||||
*/
|
*/
|
||||||
if (sync_priority[i] == 0)
|
if (sync_priority[i] == 0)
|
||||||
values[7] = CStringGetTextDatum("ASYNC");
|
values[7] = CStringGetTextDatum("async");
|
||||||
else if (i == sync_standby)
|
else if (i == sync_standby)
|
||||||
values[7] = CStringGetTextDatum("SYNC");
|
values[7] = CStringGetTextDatum("sync");
|
||||||
else
|
else
|
||||||
values[7] = CStringGetTextDatum("POTENTIAL");
|
values[7] = CStringGetTextDatum("potential");
|
||||||
}
|
}
|
||||||
|
|
||||||
tuplestore_putvalues(tupstore, tupdesc, values, nulls);
|
tuplestore_putvalues(tupstore, tupdesc, values, nulls);
|
||||||
|
Reference in New Issue
Block a user