-
Notifications
You must be signed in to change notification settings - Fork 19
fix: support PostgreSQL 17 #570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
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. |
So, I've finally managed to eliminate the
It's mentioned here too:
|
This PR adds support for compiling FDW standalone plugins against PosgreSQL 17.