[英]PostgreSQL - getting an error when listing databases with message "ERROR: column d.daticu does not exist"
在 PostgreSQL 中列出數據庫時,可能導致以下錯誤的原因是什么。
我有 2 個集群在不同端口和不同數據目錄下的同一台機器上運行。 當我連接到其中一個時,該命令工作正常,但在連接到另一個時失敗。
一個集群使用 PostgreSQL 數據庫社區版本,而另一個集群使用 EnterpriseDB Advanced Server 12.1.2 postgres 平台,但位於同一台機器上,但目錄不同。
我的 psql 客戶端版本是psql (EnterpriseDB) 12.1.2
,數據庫版本是PostgreSQL 12.1, compiled by Visual C++ build 1914, 64-bit
正在經歷的錯誤是:
postgres=# \l
ERROR: column d.daticu does not exist
LINE 6: d.daticu as "ICU",
^
HINT: Perhaps you meant to reference the column "d.datacl".
您的服務器是開源的 PostgreSQL,而psql
是 EnterpriseDB 的分支。
EnterpriseDB 必須修改他們的pg_database
以包含一個額外的列,並且對\\l
運行的查詢引用了該列。 現在開源 PostgreSQL 沒有該列,因此查詢失敗。
使用與服務器相同的發行版中的psql
以獲得最佳結果。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.