pgsql: Remove old readline API workaround

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove old readline API workaround
Date: 2026-08-25 08:15:25
Message-ID: E1wymJY-000000021jP-2SVE@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove old readline API workaround

The casting away of const is no longer needed.

rl_readline_name has been const since readline-4.2 (2001), libedit
since
2018 (https://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/readline/readline.h?sortby=date,
rev 1.44)

See also commit 8666cf65ea6 for a similar fix.

Reviewed-by: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Discussion: https://www.postgresql.org/message-id/flat/459217ca-3840-4452-8cd1-8f9b47e8d479%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5e1e32c2c6c61c411358ef101acb27db3969d4fb

Modified Files
--------------
src/bin/psql/tab-complete.in.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2026-08-25 08:16:22 pgsql: Fix incorrect cast in Assert
Previous Message Peter Eisentraut 2026-08-25 08:01:39 pgsql: Fix accidentally casting away const