-
Notifications
You must be signed in to change notification settings - Fork 37
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
Failed to expand node: column rel.relispartition does not exist LINE 15: AND NOT rel.relispartition #444
Comments
It seems only affect certain PostgreSQL variants or versions. I tested on a local docker container with PostgreSQL 15.3 but could not reproduce this issue. |
Same issue with PostgreSQL version 9.3.13 on Ubuntu server. Using extension version 0.5.0. |
Same issue with PostgreSQL version 9.5. Using Data Studio on M2 Macbook Pro |
Experiencing the same issue, anyone know if this has been resolved? |
Hi @nasc17 , I think this issue is affecting many people and it basically has no workaround. I guess it is more than an 'enhancement' but a real bug... Maybe we can re-prioritize this? |
I think the problem is with pgtoolsservice, possibly here: https://github.com/microsoft/pgtoolsservice/blob/8aac258e699436a7232129435a5197361d7cc0ba/pgsmo/objects/table/templates/9.1_plus/nodes.sql#L20 According to the Postgres documentation, the relispartition field appeared between versions 9.6 and 10 so this query is likely to fail on versions prior to 10 (the file path implies it'd be used for 9.1+). Compare https://www.postgresql.org/docs/9.6/catalog-pg-class.html and https://www.postgresql.org/docs/10/catalog-pg-class.html |
Same issue with Postgresql 9.6.24. Using extension v0.6.0 on Windows 10. |
I did some further testing. All the extension versions up to v0.3.1 works fine. Starting with v0.4, this error starts to appear. In my honest opinion, this is a breaking change between these 2 versions. If this is case, why is this not a bug but an 'enhancement'? I am really confused by these labels now... |
We have a posgresql 8.4 install and experienced the same error. v0.3.1 seemed to work ok, but haven't completely tested it. Following this thread for updates. |
Describe the bug
When open a 'tables' node in a PostgreSQL database schema. This error occurs.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should open the node and show all tables.
Screenshots
Desktop (please complete the following information):
ADS (please complete the following information):
Additional context
This issue was fixed in https://github.com/microsoft/sqltoolsservice . Not sure if this extension has any dependency on it.
The text was updated successfully, but these errors were encountered: