access public relation from a private database

Поиск
Список
Период
Сортировка
От Joey K.
Тема access public relation from a private database
Дата
Msg-id 467669b30809290513l603d51d0r91e64ab7680b16d5@mail.gmail.com
обсуждение исходный текст
Ответы Re: access public relation from a private database  (Tino Wildenhain <tino@wildenhain.de>)
Re: access public relation from a private database  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-general

Hello,

I've created a table in public schema,
CREATE TABLE public.foo (fooid SERIAL);


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?

Thanks,
Steve




В списке pgsql-general по дате отправления:

Предыдущее
От: Sam Mason
Дата:
Сообщение: Re: PostgreSQL Cache
Следующее
От: Tino Wildenhain
Дата:
Сообщение: Re: access public relation from a private database