<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuizo</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuizo/</author_url>
  <blog_title>なからなLife</blog_title>
  <blog_url>https://atsuizo.hatenadiary.jp/</blog_url>
  <categories>
    <anon>PostgreSQL</anon>
  </categories>
  <description>用途 時間計測したいけど、結果の行表示とか余計なものは全くいらない、ってケースありますよね。性能検証やってるときとか。何百行何千行も取れるようなSQL流すと、表示するのも萎える。 pager有効だと「--More--」って出て止まる。これは「q」で残りの表示はスキップできるけど、それもめんどくさい。 pager無効にすれば余計な操作はいらなくなるけど、表示処理が重いし。 結論 psqlでログインして「\timing」で実行時間表示モードをONにした後、以下を実行します。 その１：メタコマンド「\g」を使って、/dev/nullにリダイレクトする。 SELECT ...(任意のクエリ) \g |…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsuizo.hatenadiary.jp%2Fentry%2F2020%2F01%2F22%2F100000&quot; title=&quot;PostgreSQLのpsqlで実行時間だけ欲しい場合 - なからなLife&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://images-fe.ssl-images-amazon.com/images/I/51GuYHwEzcL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-01-22 10:00:00</published>
  <title>PostgreSQLのpsqlで実行時間だけ欲しい場合</title>
  <type>rich</type>
  <url>https://atsuizo.hatenadiary.jp/entry/2020/01/22/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
