fix: support PostgreSQL 17#570
Conversation
|
Hey @pdecat, Thank you for taking the time and effort to get this done. I will get it reviewed by this week. |
|
Hi @pskrbasu, I may have uncovered some further things to adjust with PostgreSQL 17+, as some queries which were working with PostgreSQL 14.17 (Steampipe's embedded) and PostgreSQL 15.13 (FDW standalone) are failing with an With I've managed to work-around this issue with this sort of change: I'm now trying to figure out if this is a regression in PG17.x or something that should be done in Steampipe FDW and/or plugin code. It seems to happen when hydrate functions return nil values for JSON type. Note: I've also tested 18beta1 where the issue is still present but with |
|
I've reproduced the issue with PostgreSQL 16.9 with |
|
Searching for
https://www.postgresql.org/message-id/34353.1430250604%40sss.pgh.pa.us It seems the FDW code adding those |
|
It also happens without JSON columns involved, e.g. here's the smallest reproduction case I could come with so far: PS: yes, that query doesn't make any sense. |
4856299 to
ddd6860
Compare
|
So, I've finally managed to eliminate the It's mentioned here too:
|
|
Hmm, also getting the following error with some other queries: |
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
|
Still working on this... |
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
|
Still working on this... |
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
|
Will get back to it. |
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
|
Superseded by #665 |
This PR adds support for compiling FDW standalone plugins against PosgreSQL 17.