title: PostgreSQL FOREIGN KEY with second database
body: <p>I'm running the following queries on PostgreSQL 9.3:</p>
  
  <pre><code>CREATE TABLE "app_item" 
    ( 
       "id"          SERIAL NOT NULL PRIMARY KEY, 
       "location_id" UUID NOT NULL 
    ); 
  
  CREATE INDEX app_item_e274a5da 
    ON "app_item" ("location_id"); 
  
  ALTER TABLE "app_item" 
    ADD CONSTRAINT app_item_location_id_5cecc1c0b46e12e2_fk_fias_addrobj_aoguid 
    FOREIGN KEY ("location_id") REFERENCES "fias_addrobj" ("aoguid") deferrable 
    initially deferred;
  </code></pre>
  
  <p>Third query returns:</p>
  
  <blockquote>
    <p>ERROR: relation "fias_addrobj" does not exist</p>
  </blockquote>
  
  <ul>
  <li><code>app_item</code> - table in first database</li>
  <li><code>fias_addrobj</code> - table in second database</li>
  </ul>
  
  <p>How to do correct query with this databases?</p>