Revert "Don't truncate database and user names in startup packets."
authorNathan Bossart <nathan@postgresql.org>
Thu, 12 Dec 2024 21:52:04 +0000 (15:52 -0600)
committerNathan Bossart <nathan@postgresql.org>
Thu, 12 Dec 2024 21:52:04 +0000 (15:52 -0600)
commitd09fbf645ecea4f36309dc34731e6fd66a342131
tree441b2d70053746bcfa428af3202c8193c497d874
parent8afff7d6db25ab52f155d8a220f692d7d6d84152
Revert "Don't truncate database and user names in startup packets."

This reverts commit 562bee0fc13dc95710b8db6a48edad2f3d052f2e.

We received a report from the field about this change in behavior,
so it seems best to revert this commit and to add proper
multibyte-aware truncation as a follow-up exercise.

Fixes bug #18711.

Reported-by: Adam Rauch
Reviewed-by: Tom Lane, Bertrand Drouvot, Bruce Momjian, Thomas Munro
Discussion: https://postgr.es/m/18711-7503ee3e449d2c47%40postgresql.org
Backpatch-through: 17
src/backend/tcop/backend_startup.c