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
"column att.attgenerated does not exist" in pg_attribute after upgrade to 9.5.0 #11257
Comments
Can confirm this happens when tested on Postgres 10, and it showed up after logging in and greeted with the error message both in the App and terminal. Seems to be a change over at |
Cc @nickrum |
This comment has been minimized.
This comment has been minimized.
Yes to both. We aim to support Postgres back to 10.14 (as that's the current available version for the popular AWS Aurora service). The SQL instruction is important, but there must be a way we can work around that 👍🏻 |
Ok noted ! Regarding the "is_generated" info that the query is looking for, it seems to me that the only other place where it exists before pgsql 12 is in information_schema.columns : |
Fixed in #11268 |
@3615alexis Postgres < 12 didn't have support for generated columns, so simply not retrieving it for postgres < 12 is the simplest solution 🙂 |
I assume this fix is not included in @latest version? 9.5.0 ? Thank you :) |
@dataexcess This bug was reported when 9.5 was released. It's marked in the v9-next (next release) milestone 👍🏻
Either stick on the last v9.4 release, or wait for the next scheduled release 👍🏻 |
Ok thank you. |
Cool! In that case I will wait it out :) Thank you! |
I tested and the issue is fixed! |
Preflight Checklist
Describe the Bug
Hello,
After upgrading to 9.5.0, Directus broke, with following error: "column att.attgenerated does not exist" (see details below).
Indeed, this column "attgenerated" from pg_attribute does not exist in PostgreSQL prior to version 12 : https://pgpedia.info/p/pg_attribute.html
In other words, migrating to Directus 9.5.0 means a major/breaking change for a lot of people, versus the documentation still saying 10+ : https://docs.directus.io/getting-started/installation/cli/
Can you fix it to keep Directus compatible with Postgre >= 10 ? Or is the SQL instruction part below absolutely vital ?
Thanks for your help
Alexis
To Reproduce
Use 9.5.0 with postgre priori to version 12
Errors Shown
What version of Directus are you using?
9.5.0
What version of Node.js are you using?
14.18.3
What database are you using?
Postgre 11
What browser are you using?
Chrome
What operating system are you using?
Debian 10
How are you deploying Directus?
Raspberry Pi
The text was updated successfully, but these errors were encountered: