如何以编程方式找出psql命令“ \d +”中的哪些查询确实 [英] How to programmatically find out which queries the psql command "\d+" does
本文介绍了如何以编程方式找出psql命令“ \d +”中的哪些查询确实的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一种以编程方式生成postgreSQL数据库统计信息的解决方案。 psql的命令 \d +正是我所需要的(在输出方面),但是到目前为止,我还没有找到一种以编程方式(通过使用C#和npgsql.dll)检索相同数据的方法。有什么建议么?
I'm looking for a solution to generate postgreSQL database statistics programmatically. The psql commmand "\d+" is exactly what I need (output-wise), but so far I didn't find a way to retrieve this same data programmatically (by using C# and npgsql.dll). Any suggestions? Thanks in advance!
推荐答案
答案在这里: http://wiki.postgresql.org/wiki/Disk_Usage
我发现具有以下功能非常有用: https://gist.github.com/ArtemGr/8434901
另请参见:PostgreSQL DESCRIBE TABLE
这篇关于如何以编程方式找出psql命令“ \d +”中的哪些查询确实的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文