<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fujikkoooooo</author_name>
  <author_url>https://blog.hatena.ne.jp/fujikkoooooo/</author_url>
  <blog_title>ドルヲタ系インフラエンジニア じーふーの備忘録</blog_title>
  <blog_url>https://fujikkoooooo.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>psql起動時に-o [ファイル名]オプションを付けて出力先を指定することで、psqlで実行したクエリの結果をファイルに出力できます。 実行ログ [postgres@vagrant-centos65 ~]$ /usr/local/pgsql/bin/psql test -q -t -o result.out test=# test=# test=# \qecho hoge fuga piyo test=# select 1,2,3; test=# \o test=# select 4,5,6; 4 | 5 | 6 test=# \q [postgres@vagrant-centos65 ~]$…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffujikkoooooo.hateblo.jp%2Fentry%2F2015%2F05%2F01%2F124126&quot; title=&quot;【postgresql】 psql出力結果をファイルに出力させる - ドルヲタ系インフラエンジニア じーふーの備忘録&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-05-01 12:41:26</published>
  <title>【postgresql】 psql出力結果をファイルに出力させる</title>
  <type>rich</type>
  <url>https://fujikkoooooo.hateblo.jp/entry/2015/05/01/124126</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
