<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuum3</author_name>
  <author_url>https://blog.hatena.ne.jp/yuum3/</author_url>
  <blog_title>yuumi3のお仕事日記</blog_title>
  <blog_url>https://yuumi3.hatenablog.com/</blog_url>
  <categories>
    <anon>ソフト</anon>
  </categories>
  <description>開発環境から本番環境へデータベースを移行する場合など、PostgreSQL では pg_dump でダンプし psql で読み込む(pg_dumpのダンプファイルは SQL文なので、正確には実行)という事を行うと思います。移行するデータが全体なら pg_dump、 テーブル単位なら pg_dump -t TABLE でダンプできますが、 「あるテーブルのある条件にあてはまるものだけ」という場合は pg_dump では出来ません。こんな時、PostgreSQL がバージョン8以降なら COPY 文の query 指定が便利です。 SQL&gt; COPY (SELECT * FROM sample_t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyuumi3.hatenablog.com%2Fentry%2F20071213%2F1197535601&quot; title=&quot; PostgreSQLでの部分データ移行 - yuumi3のお仕事日記&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>2007-12-13 17:46:41</published>
  <title> PostgreSQLでの部分データ移行</title>
  <type>rich</type>
  <url>https://yuumi3.hatenablog.com/entry/20071213/1197535601</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
