pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: fernando gamba <gamba.fernando@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: views from another schema
Date: Tue, 22 Jan 2008 10:29:22 -0800
Message-ID: <20080122102922.6fa77d50@commandprompt.com> (raw)
In-Reply-To: <e355e6800801221011k60d607d1jb60482e9c8a54fe1@mail.gmail.com>
References: <e355e6800801221011k60d607d1jb60482e9c8a54fe1@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 22 Jan 2008 15:11:30 -0300
"fernando gamba" <gamba.fernando@gmail.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-----


view thread (2+ messages)

Message-ID: <20080122102922.6fa77d50@commandprompt.com>
Permalink:  ../20080122102922.6fa77d50@commandprompt.com/
Also on:    postgresql.org/message-id/20080122102922.6fa77d50@commandprompt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: jd@commandprompt.com, gamba.fernando@gmail.com
  Subject: Re: views from another schema
  In-Reply-To: <20080122102922.6fa77d50@commandprompt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox