| From: | Jorge Campins <jrcampins(at)gmail(dot)com> |
|---|---|
| To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Subject: | information_schema query not working in PostgreSQL version 17 |
| Date: | 2025-05-14 21:57:45 |
| Message-ID: | CAN6-wfK7fVS5tpN_zro75rCYX41eZZ1DMiTcX5aYvRxEGypLMw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Dears Sirs,
You will find attached 2 sql files:
- select-for-version-16-or-lower.sql
- select-for-version-17
Both queries return the same result; I've been using the
select-for-version-16-or-under query since a few versions ago. Since
upgrading to version 17, it doesn't work with a database with many defined
constraints. By many, I mean:
- 9104 rows in table_constraints
- 2592 rows in referential_constraints
- 4476 rows in key_column_usage
The original query never completes in version 17; I tried several times and
always canceled it after 30 minutes. To make it work in version 17, I had
to add redundant search criteria. You can understand what I mean by
comparing the attached files. The original query runs in approximately 45
seconds on version 16; the version 17 query runs in approximately 68
seconds, using the same data.
I have never reported an iissue for PostgreSQL before. Ihope this is the
proper way to do it.
Regardse,
Jorge Campins
| Attachment | Content-Type | Size |
|---|---|---|
| select-for-version-16-or-lower.sql | application/octet-stream | 2.0 KB |
| select-for-version-17.sql | application/octet-stream | 2.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jason Matthew | 2025-05-15 00:57:21 | RE: pg16 ALTER ROLE [NO]INHERIT has no effect on existing grants |
| Previous Message | David G. Johnston | 2025-05-14 21:16:59 | Re: pg16 ALTER ROLE [NO]INHERIT has no effect on existing grants |