Closed bwong365 closed 1 year ago
+1
+1
I fixed it locally. go to %USERPROFILE%.azuredatastudio\extensions\microsoft.azuredatastudio-postgresql-0.2.7 find nodes.sql file in the sub directory out\ossdbtoolsservice\Windows\v1.5.0\pgsqltoolsservice\lib\pgsmo\objects\database\templates+default\
change db.datlastsysoid, to 0 as datlastsysoid, in the sql text. save and reopen the azure data studio
+1 - Thank you! - I was getting this when trying to expand databases in tree.
I fixed it locally. go to %USERPROFILE%.azuredatastudio\extensions\microsoft.azuredatastudio-postgresql-0.2.7 find nodes.sql file in the sub directory out\ossdbtoolsservice\Windows\v1.5.0\pgsqltoolsservice\lib\pgsmo\objects\database\templates+default\
change db.datlastsysoid, to 0 as datlastsysoid, in the sql text. save and reopen the azure data studio
This was really helpful, thank you! For anyone for whom this doesn't fix it, note that you may have to do a little more depending on... factors I don't really understand as a Postgres newbie 🤣 See my comment here.
0 as datlastsysoid,
This fixed my issue today - thank you!
I fixed it locally. go to %USERPROFILE%.azuredatastudio\extensions\microsoft.azuredatastudio-postgresql-0.2.7 find nodes.sql file in the sub directory out\ossdbtoolsservice\Windows\v1.5.0\pgsqltoolsservice\lib\pgsmo\objects\database\templates+default\
change db.datlastsysoid, to 0 as datlastsysoid, in the sql text. save and reopen the azure data studio
how to open this m really not getting how to fix using this solution
@sanyog2491 - if you navigate to this directory (easiest way is to open File Explorer and past it into the address bar).
%USERPROFILE%.azuredatastudio\extensions\microsoft.azuredatastudio-postgresql-0.2.7\out\ossdbtoolsservice\Windows\v1.5.0\pgsqltoolsservice\lib\pgsmo\objects\database\templates+default
Edit the file "nodes.sql" and you should see a line referencing "datlastsysoid" - you want to change that line to look like this:
0 as datlastsysoid,
Save the file and then open Azure Data Studio again and the issue should be resolved.
For MacOS this can be found at
~/.azuredatastudio/extensions/microsoft.azuredatastudio-postgresql-0.2.7/out/ossdbtoolsservice/OSX/v1.5.0/pgsqltoolsservice/lib/pgsmo/objects/database/templates/+default/nodes.sql
@RachelAmbler @Aidan-Chang thanks it fixed the problem for me too
Tracking from https://github.com/microsoft/azuredatastudio-postgresql/issues/357. Closing the issue
From Azure Data Studio:
On the Postgres side: