已经有一个问题“如何使用 psql 为 SQL 查询计时? ”但我缺少如何从命令行执行此操作的答案。如何从命令行运行带有(可选)计时\timing [on|off]的脚本- 请不要在脚本中运行?
\timing [on|off]
postgresql performance psql query-performance
performance ×1
postgresql ×1
psql ×1
query-performance ×1