Open jflambert opened 5 years ago
Searching for p.proisagg among our issues (including closed) you'll find #470
PostgreSQL made changes to their schemas in 11.2 so there is a new databaseType -t psgsql11
that can be used.
OK! Thanks.
Could you maybe auto-detect that setting or improve the error message to suggest this new type?
Auto-detect would be a cool feature I might look into that.
Right, I would also argue that when PostgreSQL 12 is released, using a -t pgsql11
option might be counter-intuitive.
Man those 1 and l look the same.
We have taken the same approach for other dbms. So the idea is 11 or newer.
Same goes for mssql and this is to not break backwards compatability. Need to check that this is documented in more than a single issue discussing this.
Documentation is needed for the strategy. It would be possible to check for databaseTypes that extends the selected to show alternatives.
Adding a version property to the databaseType would make a type of autodetection possible.
A proposal for auto-detect #544
Had thesame issue in phppgadmin and realised error is caused by phppgadmin directly accessing postgres schema using queries designed for postgres < 10. Work around is to run these two commands in ubuntu command prompt to effect column name change.
sed -i "s/NOT pp.proisagg/pp.prokind='f'/g" /usr/share/phppgadmin/classes/database/Postgres.php sed -i "s/NOT p.proisagg/p.prokind='f'/g" /usr/share/phppgadmin/classes/database/Postgres.php
You may need to run command as sudo to avoid permission denied error. Also check to confirm correct case of phpPgAdmin folder name in above commands
To prevent future confusion, maybe type pgsql
should be an alias for pgsql11
and there should be pgsql10
for older versions (which occur less and less in the wild)?
Seeing a warning/error that I don't see with latest official release 6.0.0.
Expected Behavior
Shouldn't see a warning, or warning should be more helpful.
Current Behavior
Seeing a schema warning with the latest schemaspy 6.1.0-SNAPSHOT
Steps to Reproduce (for bugs)
Context
Your Environment