Thread: Re: pgsql: Add strict_multi_assignment and too_many_rows plpgsqlchecks
On 2018-07-25 01:47, Tomas Vondra wrote: > Add strict_multi_assignment and too_many_rows plpgsql checks Could you clarify this error message: /* translator: %s represents a name of an extra check */ errdetail("%s check of %s is active.", "strict_multi_assignment", strict_multiassignment_level == ERROR ? "extra_errors" : "extra_warnings"), What does, for example, strict_multi_assignment check of extra_errors is active. mean? Also note that the translator comment is only mentioning one of the %s. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Hi
čt 9. 5. 2019 v 8:52 odesílatel Peter Eisentraut <peter.eisentraut@2ndquadrant.com> napsal:
On 2018-07-25 01:47, Tomas Vondra wrote:
> Add strict_multi_assignment and too_many_rows plpgsql checks
Could you clarify this error message:
/* translator: %s represents a name of an extra check */
errdetail("%s check of %s is active.",
"strict_multi_assignment",
strict_multiassignment_level == ERROR ? "extra_errors" :
"extra_warnings"),
What does, for example,
strict_multi_assignment check of extra_errors is active.
mean?
strict_multi_assignment is a name of plpgsql extra check. This check checks number of expressions against number of target variables.
extra checks can produces errors or warnings - so second placeholder specifies used level.
The sense of this detail's message is a introduce of reason of this error message.
Regards
Pavel
Also note that the translator comment is only mentioning one of the %s.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services