Hubert 'depesz' Lubaczewski: Now you can \d table not only in psql :)

原文英文,约500词,阅读约需2分钟。发表于:

Whenever people look for help with queries, one of the first things that I ask is: what is \d of the table. Which works great, with the caveat, that the person on the other end must be somewhat...

通常当人们寻求帮助时,我会首先问:表的\d是什么?这很有用,但是对方必须有一定的psql熟悉程度。因此,我想尝试修复它。为此,我创建了psql-backslash,它是一组纯pl/PgSQL函数,旨在生成与各种\*命令生成的输出完全兼容的输出。目前,它只包含两个有用的函数:select psql.d();和select psql.d('table_name')。安装可以使用full.create.sql文件或scripts/build.full.sql.sh脚本。希望你能发现它有用。

相关推荐 去reddit讨论