在 Dbeaver/PgAdmin 中看不到函数体

Cannot see body of function in Dbeaver/PgAdmin

我使用 DBeaver 连接到 postgreSQL 数据库(8.3 版)。当找到函数并尝试查看它的主体时,我收到错误消息,指出有 ERROR WHILE READING SOURCE: SQL Error [42883]: function pg_get_functiondef(oid) does not exists。 我该如何克服这个问题?

pg_get_functiondef(oid) 在 Postgres 8.4 (release notes) 中发布,因此 DBeaver 无法使用它来获取函数 def。创建新连接时尝试使用 PostgreSQL(通用)驱动程序。它对旧版本的 Postgres 有更好的支持。