aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/variable.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2025-03-30 16:10:51 -0400
committerAndres Freund <andres@anarazel.de>2025-03-30 16:10:51 -0400
commit4244cf68769773ba30b868354f1f2fe93238e98b (patch)
tree55f286503652fe88b1f219697746c24b8766b341 /src/backend/commands/variable.c
parent49b82522f13fa5f756687f5609f687877fc970ff (diff)
downloadpostgresql-4244cf68769773ba30b868354f1f2fe93238e98b.tar.gz
postgresql-4244cf68769773ba30b868354f1f2fe93238e98b.zip
Add errhint_internal()
We have errmsg_internal(), errdetail_internal(), but not errhint_internal(). Sometimes it is useful to output a hint with already translated format string (e.g. because there different messages depending on the condition). For message/detail we do that with the _internal() variants, but we can't do that with hint today. It's possible to work around that that by using something like str = psprintf(translated_format, args); ereport(... errhint("%s", str); but that's not exactly pretty and makes it harder to avoid memory leaks. Reviewed-by: Noah Misch <noah@leadboat.com> Discussion: https://postgr.es/m/ym3dqpa4xcvoeknewcw63x77vnqdosbqcetjinb2zfoh65k55m@m4ozmwhr6lk6
Diffstat (limited to 'src/backend/commands/variable.c')
0 files changed, 0 insertions, 0 deletions