我希望标题是自我描述的。我希望能够以某种方式将任何 Postgres 元命令转换为其相应的/基础 SQL 查询,至少可以了解有关 Postgres 及其在表中存储元信息的方式的更多信息。
如果可能的话,有什么想法吗?
例如:
当连接到数据库的例子,
\dt
并SELECT table_schema,table_name FROM information_schema.tables ORDER BY table_schema,table_name;
返回相同的结果。
如果可能的话,我想找到一种SELECT table_schema,table_name FROM information_schema.tables ORDER BY table_schema,table_name;
在输入\dt
到函数/宏/任何东西时获取值的方法。
postgresql ×1