Closed bcoulam-fmg closed 1 year ago
@bcoulam-fmg thanks for reporting this issue! The Postgres extension is tracking its bugs on a different repo so I'll transfer this there.
@bcoulam-fmg thanks for reporting this issue! The Postgres extension is tracking its bugs on a different repo so I'll transfer this there.
Thank you @kburtram ! When I click Report Issue in ADS, I'm brought here. If I find more issues with ADS on Azure Postgres, is there a name/address for the correct repo so I can bypass this step of moving it to the right one?
Please update to latest stable release of PostgreSQL extension v0.4.2. We would appreciate your verification if this issue is still present.
Between 0.2.7 and 0.4.2 someone fixed Azure Postgres function reverse engineering. I can now click Script on Create for functions and it works. The following bug, and new bugs, remain. All were found within 5 minutes of testing the database object tree in the Servers pane, and the Script as Create capabilities: I shudder to think of the bugs I'd find if I were to spend a day with it.
@bcoulam-fmg Thank you for such a thorough response and taking the time to leave this review. We will do our best to keep you updated as we continue to work on correcting the extension.
Hi @bcoulam-fmg, thank you for taking the time to investigate these issues. We will be refiling some of these issues into separate issues so that we can keep better track of them. Through looking at these issues here is what we have decided:
Will update this issue once all issues are refiled and link them here. I'll then close this issue.
Closing this issue, the new separate issues have been refiled.
Issue Type: Bug
This client is an Azure shop. They are on Azure Postgres due to Hasura which forced Postgres when they adopted it. I am using ADS to connect to Azure Postgres (v 11.X). I am using AAD to authenticate and am connected as the developer role instead of datareader, which means I should be able to view the DDL of non-system tables and views and indexes, and the source for stored functions.
I am able to view the DDL for tables and views. However, whenever I attempt to right-click and Script as Create on indexes and functions I get errors.
With indexes I get "Failed to expand node". Under the "Log (Window)" output I see [2023-01-09 11:38:41.207] [renderer1] [error] Failed to expand node: 'NodeCollection' object has no attribute 'refresh' [2023-01-09 11:39:06.964] [renderer1] [error] An unknown error occurred. Please consult the log for more details.
With functions I get "No script returned when scripting as Create". Under the "ossdbToolsService" output, I see [Error - 11:43:30 AM] Request scripting/script failed. Message: Object of type NoneType does not support script operation ScriptOperation.CREATE Code: 0 [object Object]
By the way, under the Output tab's source drop-down, there are two "ossdbToolsService" choices. One of them has output, the other does not.
I've asked around, and the managers and developers I've talked to all have the same problem. They have thrown up their hands in frustration and resort to querying the pg catalog and information_schema to browse database objects, instead of being able to do it visually.
Azure Data Studio version: azuredatastudio 1.40.2 (661384637db384fe5d4e6224069adbe708580b16, 2022-12-22T22:17:02.658Z) OS version: Windows_NT x64 10.0.19042 Restricted Mode: No Preview Features: Enabled
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.88GB (7.33GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions (1)
Extension|Author (truncated)|Version ---|---|--- azuredatastudio-postgresql|Mic|0.2.7