pgsql: Fix psql describe commands' handling of ACL columns for old serv

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix psql describe commands' handling of ACL columns for old serv
Date: 2024-09-24 21:21:41
Message-ID: E1stCyb-000k7u-DW@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix psql describe commands' handling of ACL columns for old servers.

Commit d1379ebf4 carelessly broke printACLColumn for pre-9.4 servers,
by using the cardinality() function which we introduced in 9.4.
We expect psql's describe-related commands to work back to 9.2, so
this is bad. Use the longstanding array_length() function instead.

Per report from Christoph Berg. Back-patch to v17.

Discussion: https://postgr.es/m/ZvLXYglRS6hMMhtr@msg.df7cb.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1591b38d17c55015403f6e3c9461538ffcf704e7

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-09-24 21:21:42 pgsql: Fix psql describe commands' handling of ACL columns for old serv
Previous Message noreply 2024-09-24 21:07:05 pgsql: Tag refs/tags/REL_17_0 was created