Re: attndims, typndims still not enforced, but make the value within a sane threshold - Mailing list pgsql-hackers

From Tom Lane
Subject Re: attndims, typndims still not enforced, but make the value within a sane threshold
Date
Msg-id 413465.1733894151@sss.pgh.pa.us
Whole thread Raw
In response to Re: attndims, typndims still not enforced, but make the value within a sane threshold  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> FWIW, my first thought after reading this paragraph is that you sound
> too dramatic here, especially after looking at codesearch to note that
> the PHP core code stores attndims but does not actually use it.

It appeared to me that it fetches it in order to return it in an
application inquiry function [1].  So to really gauge the damage,
you'd have to find out how many PHP applications pay attention
to the "array dims" field of pg_meta_data().  Maybe it's a trivial
number, or maybe not --- I didn't have the energy to search.

            regards, tom lane

[1] https://sources.debian.org/src/php8.2/8.2.26-4/ext/pgsql/pgsql.c/?hl=4245#L4245



pgsql-hackers by date:

Previous
From: vignesh C
Date:
Subject: Re: Memory leak in WAL sender with pgoutput (v10~)
Next
From: vignesh C
Date:
Subject: Re: Adding a '--two-phase' option to 'pg_createsubscriber' utility.