<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toritori0318</author_name>
  <author_url>https://blog.hatena.ne.jp/toritori0318/</author_url>
  <blog_title>アルパカDiary Pro</blog_title>
  <blog_url>https://toritori0318.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Postgres</anon>
    <anon>データベース</anon>
  </categories>
  <description>postgresqlでカレントデータベースから他のデータベースに接続する場合は dblinkというcontrib*1をインストールして実現できるのですが、 そのまま使おうとすると非常に使いづらい…*2 なわけで、よく使うテーブルをあらかじめビューにしておくと良いのでは？ と思い調査してみました。 まずはdblinkのインストール*3 # cd /usr/local/src/postgresql-8???/contrib/dblink # make # make install # psql -U postgres -d データベース名 &lt; dblink.sqlこれだけでOK。 ちなみに、リンク…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoritori0318.hatenadiary.jp%2Fentry%2F20090221%2F1235229759&quot; title=&quot;Postgresql ビューでdblinkを使用 - アルパカDiary Pro&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>2009-02-21 00:22:39</published>
  <title>Postgresql ビューでdblinkを使用</title>
  <type>rich</type>
  <url>https://toritori0318.hatenadiary.jp/entry/20090221/1235229759</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
