Re: access public relation from a private database - Mailing list pgsql-general

From A. Kretschmer
Subject Re: access public relation from a private database
Date
Msg-id 20080929122825.GE20575@a-kretschmer.de
Whole thread Raw
In response to access public relation from a private database  ("Joey K." <pguser@gmail.com>)
List pgsql-general
am  Mon, dem 29.09.2008, um 17:43:21 +0530 mailte Joey K. folgendes:
>
> When I try to create a table in database nowhere that references public.foo
> table,
>
> CREATE DATABASE nowhere;
> \c nowhere;
> CREATE TABLE bar (bar integer REFERENCES public.foo(fooid));
>
> I get, ERROR:  relation "public.foo" does not exist.
>
> Can I reference public relations from private database?

You can't access across databases.


Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

pgsql-general by date:

Previous
From: Tino Wildenhain
Date:
Subject: Re: access public relation from a private database
Next
From: Tom Lane
Date:
Subject: Re: pg_start_backup() takes too long