pgsql: Revert "Don't truncate database and user names in startup packet

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Revert "Don't truncate database and user names in startup packet
Date: 2024-12-12 21:53:42
Message-ID: E1tLr7t-002PdO-Nw@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a0ff56e2d3ff1db3de727b33b2dac985ccc43ef8

Modified Files
--------------
src/backend/tcop/backend_startup.c | 9 +++++++++
1 file changed, 9 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Álvaro Herrera 2024-12-13 06:40:46 pgsql: Dump not-null constraints on inherited columns correctly
Previous Message Álvaro Herrera 2024-12-12 15:26:34 pgsql: Backpatch critical performance fixes to pgarch.c