Skip site navigation (1) Skip section navigation (2)

Re: views from another schema

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: "fernando gamba" <gamba(dot)fernando(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: views from another schema
Date: 2008-01-22 18:29:22
Message-ID: 20080122102922.6fa77d50@commandprompt.com (view raw or flat)
Thread:
Lists: pgsql-admin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 22 Jan 2008 15:11:30 -0300
"fernando gamba" <gamba(dot)fernando(at)gmail(dot)com> wrote:

> i need to know if i can make a view which get data from another schema
> or a link wich point to a table in another schema.

Sure... assume the following:

create schema foo;
create table baz(id serial primary key)
create view foo.myview as select * from public.baz;

Sincerely,

Joshua D. Drake



- -- 
The PostgreSQL Company: Since 1997, http://www.commandprompt.com/ 
Sales/Support: +1.503.667.4564   24x7/Emergency: +1.800.492.2240
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
SELECT 'Training', 'Consulting' FROM vendor WHERE name = 'CMD'


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHljYEATb/zqfZUUQRAi6yAJ9VFFqjEkvPW9TpFCSi9knCpHUDwgCcCQke
FfVRrIWWPHYTdDrxwKGevnA=
=+pNY
-----END PGP SIGNATURE-----

In response to

pgsql-admin by date

Next:From: Kevin KempterDate: 2008-01-22 20:55:46
Subject: src equivelant of postgresql-python
Previous:From: fernando gambaDate: 2008-01-22 18:11:30
Subject: views from another schema

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group