diff options
| author | Alvaro Herrera | 2019-12-24 15:37:13 +0000 |
|---|---|---|
| committer | Alvaro Herrera | 2019-12-24 15:44:12 +0000 |
| commit | c4dcd9144ba64946c9f9466748bdb2c51719c8a3 (patch) | |
| tree | f0c19d717fa5c6a61d5de600d9720234e460041a /src/backend/commands/extension.c | |
| parent | cce64a51cabc1e59d202d95bb0b92ed22bac73cf (diff) | |
Avoid splitting C string literals with \-newline
Using \ is unnecessary and ugly, so remove that. While at it, stitch
the literals back into a single line: we've long discouraged splitting
error message literals even when they go past the 80 chars line limit,
to improve greppability.
Leave contrib/tablefunc alone.
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/commands/extension.c')
| -rw-r--r-- | src/backend/commands/extension.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/backend/commands/extension.c b/src/backend/commands/extension.c index a04b0c9e579..6eaa9cc4f3d 100644 --- a/src/backend/commands/extension.c +++ b/src/backend/commands/extension.c @@ -1921,8 +1921,7 @@ pg_available_extensions(PG_FUNCTION_ARGS) if (!(rsinfo->allowedModes & SFRM_Materialize)) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("materialize mode required, but it is not " \ - "allowed in this context"))); + errmsg("materialize mode required, but it is not allowed in this context"))); /* Build a tuple descriptor for our result type */ if (get_call_result_type(fcinfo, NULL, &tupdesc) != TYPEFUNC_COMPOSITE) @@ -2030,8 +2029,7 @@ pg_available_extension_versions(PG_FUNCTION_ARGS) if (!(rsinfo->allowedModes & SFRM_Materialize)) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("materialize mode required, but it is not " \ - "allowed in this context"))); + errmsg("materialize mode required, but it is not allowed in this context"))); /* Build a tuple descriptor for our result type */ if (get_call_result_type(fcinfo, NULL, &tupdesc) != TYPEFUNC_COMPOSITE) @@ -2254,8 +2252,7 @@ pg_extension_update_paths(PG_FUNCTION_ARGS) if (!(rsinfo->allowedModes & SFRM_Materialize)) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("materialize mode required, but it is not " \ - "allowed in this context"))); + errmsg("materialize mode required, but it is not allowed in this context"))); /* Build a tuple descriptor for our result type */ if (get_call_result_type(fcinfo, NULL, &tupdesc) != TYPEFUNC_COMPOSITE) |
