提交 733061a6 编写于 作者: H Heikki Linnakangas

Map \dx+ command to \dx, until PostgreSQL 9.1.

The \dx+ command requires pg_describe_object() function, which we don't
have in GPDB yet. Until then, treat \dx+ the same as \dx.

Note that this code is written such that \dx+ can still be used, when
connected to a PostgreSQL 9.1 or later server. Not that we particularly care
about that case, but might as well.

Per github issue #2574.
上级 74225f3d
......@@ -4189,6 +4189,17 @@ listExtensionContents(const char *pattern)
return true;
}
/*
* GPDB_91_MERGE_FIXME: We don't have the pg_desribe_object function,
* needed for \dx+, in GPDB yet. We will get it when we merge with
* PostgreSQL 9.1 (or if we decide to cherry-pick it earlier). Until
* then, print the same as plain \dx does.
*/
if (pset.sversion < 90100)
{
return listExtensions(pattern);
}
initPQExpBuffer(&buf);
printfPQExpBuffer(&buf,
"SELECT e.extname, e.oid\n"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册