diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2024-08-29 14:33:18 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2024-08-29 14:33:18 +0200 |
commit | f2353dd71724c0d18d5912e105f034b50494bfe9 (patch) | |
tree | c80e8aaac2b380839de8d8b8c9050b00058a5366 /src/backend/utils | |
parent | fdbf7e46a46d2ce8a215b37870b14ee2d7cf0fda (diff) | |
download | postgresql-f2353dd71724c0d18d5912e105f034b50494bfe9.tar.gz postgresql-f2353dd71724c0d18d5912e105f034b50494bfe9.zip |
Message style improvements
Diffstat (limited to 'src/backend/utils')
-rw-r--r-- | src/backend/utils/adt/jsonpath_exec.c | 8 | ||||
-rw-r--r-- | src/backend/utils/misc/guc_tables.c | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/backend/utils/adt/jsonpath_exec.c b/src/backend/utils/adt/jsonpath_exec.c index c47221b7ee7..e3ee0093d4d 100644 --- a/src/backend/utils/adt/jsonpath_exec.c +++ b/src/backend/utils/adt/jsonpath_exec.c @@ -1382,7 +1382,7 @@ executeItemOptUnwrapTarget(JsonPathExecContext *cxt, JsonPathItem *jsp, if (res == jperNotFound) RETURN_ERROR(ereport(ERROR, (errcode(ERRCODE_NON_NUMERIC_SQL_JSON_ITEM), - errmsg("jsonpath item method .%s() can only be applied to a bool, string, or numeric value", + errmsg("jsonpath item method .%s() can only be applied to a boolean, string, or numeric value", jspOperationName(jsp->type))))); jb = &jbv; @@ -1663,7 +1663,7 @@ executeItemOptUnwrapTarget(JsonPathExecContext *cxt, JsonPathItem *jsp, case jbvBinary: RETURN_ERROR(ereport(ERROR, (errcode(ERRCODE_NON_NUMERIC_SQL_JSON_ITEM), - errmsg("jsonpath item method .%s() can only be applied to a bool, string, numeric, or datetime value", + errmsg("jsonpath item method .%s() can only be applied to a boolean, string, numeric, or datetime value", jspOperationName(jsp->type))))); break; } @@ -3984,12 +3984,12 @@ JsonPathQuery(Datum jb, JsonPath *jp, JsonWrapper wrapper, bool *empty, (errcode(ERRCODE_MORE_THAN_ONE_SQL_JSON_ITEM), errmsg("JSON path expression for column \"%s\" should return single item without wrapper", column_name), - errhint("Use WITH WRAPPER clause to wrap SQL/JSON items into array."))); + errhint("Use the WITH WRAPPER clause to wrap SQL/JSON items into an array."))); else ereport(ERROR, (errcode(ERRCODE_MORE_THAN_ONE_SQL_JSON_ITEM), errmsg("JSON path expression in JSON_QUERY should return single item without wrapper"), - errhint("Use WITH WRAPPER clause to wrap SQL/JSON items into array."))); + errhint("Use the WITH WRAPPER clause to wrap SQL/JSON items into an array."))); } if (singleton) diff --git a/src/backend/utils/misc/guc_tables.c b/src/backend/utils/misc/guc_tables.c index 5977c48744a..a165bf5c36e 100644 --- a/src/backend/utils/misc/guc_tables.c +++ b/src/backend/utils/misc/guc_tables.c @@ -2019,7 +2019,7 @@ struct config_bool ConfigureNamesBool[] = { {"sync_replication_slots", PGC_SIGHUP, REPLICATION_STANDBY, - gettext_noop("Enables a physical standby to synchronize logical failover slots from the primary server."), + gettext_noop("Enables a physical standby to synchronize logical failover replication slots from the primary server."), }, &sync_replication_slots, false, @@ -2349,7 +2349,7 @@ struct config_int ConfigureNamesInt[] = { {"subtransaction_buffers", PGC_POSTMASTER, RESOURCES_MEM, - gettext_noop("Sets the size of the dedicated buffer pool used for the sub-transaction cache."), + gettext_noop("Sets the size of the dedicated buffer pool used for the subtransaction cache."), gettext_noop("Specify 0 to have this value determined as a fraction of shared_buffers."), GUC_UNIT_BLOCKS }, @@ -4699,11 +4699,11 @@ struct config_string ConfigureNamesString[] = { {"synchronized_standby_slots", PGC_SIGHUP, REPLICATION_PRIMARY, - gettext_noop("Lists streaming replication standby server slot " + gettext_noop("Lists streaming replication standby server replication slot " "names that logical WAL sender processes will wait for."), gettext_noop("Logical WAL sender processes will send decoded " - "changes to plugins only after the specified " - "replication slots confirm receiving WAL."), + "changes to output plugins only after the specified " + "replication slots have confirmed receiving WAL."), GUC_LIST_INPUT }, &synchronized_standby_slots, |