【问题标题】:Azure Data Studio Failed to Expand NodeAzure Data Studio 无法展开节点
【发布时间】:2023-01-19 04:27:54
【问题描述】:

我刚刚安装了 Azure Data Studio (ADS) 和 PostgreSQL 扩展。 ADS 连接到我的 Postgresql,我可以对我的数据库进行查询。但是,下拉“数据库”选项卡不会展开。当我右键单击进行刷新时,会显示一条错误消息“错误:无法展开节点”。有人可以帮忙吗?非常感谢你提前。

【问题讨论】:

    标签: postgresql azure-data-studio


    【解决方案1】:

    自从 PostgreSQL 15 中删除了 pg_database.datlastsysoid 字段以来,这似乎是 ADS 的一个已知问题。我也在等待解决方案。

    Azure 数据工作室问题: https://github.com/microsoft/azuredatastudio-postgresql/issues/333

    在版本 15 中删除 datlastsysoid 的理由: https://www.postgresql.org/message-id/CA%2BTgmoa14%3DBRq0WEd0eevjEMn9EkghDB1FZEkBw7%2BUAb7tF49A%40mail.gmail.com

    【讨论】:

    • 感谢您的信息。这澄清了我的理解。
    • @TimB 找到了 Aidan-Chang 发布的here 的短期修复。转到 %USERPROFILE%.azuredatastudioextensionsmicrosoft.azuredatastudio-postgresql-0.2.7outossdbtoolsserviceWindows1.5.0pgsqltoolsservicelibpgsmoobjectsdatabase emplates+default odes.sql 将 sql 文本中的行 db.datlastsysoid, 替换为 0 as datlastsysoid,。保存并重新打开 Azure Data Studio
    • 感谢您抽出时间回答我的问题。让我试试看我能走多远。非常感激!
    【解决方案2】:

    按照 Crocodilus 的说明编辑节点查询替换行 db.datlastsysoid0 as datlastsysoid 为我工作。一项更新是在用户配置文件引用后添加斜线: %USERPROFILE%.azuredatastudioextensionsmicrosoft.azuredatastudio-postgresql-0.2.7outossdbtoolsserviceWindows1.5.0pgsqltoolsservicelibpgsmoobjectsdatabase emplates+default odes.sql

    【讨论】:

      猜你喜欢
      • 2023-03-13
      • 2023-01-23
      • 1970-01-01
      • 1970-01-01
      • 2014-04-13
      • 2021-04-08
      • 1970-01-01
      • 2022-01-15
      • 2021-07-21
      相关资源
      最近更新 更多