pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
views from another schema
2+ messages / 2 participants
[nested] [flat]

* views from another schema
@ 2008-01-22 18:11 fernando gamba <gamba.fernando@gmail.com>
  2008-01-22 18:29 ` Re: views from another schema Joshua D. Drake <jd@commandprompt.com>
  0 siblings, 1 reply; 2+ messages in thread

From: fernando gamba @ 2008-01-22 18:11 UTC (permalink / raw)
  To: pgsql-admin

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.

thanks in advance



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: views from another schema
  2008-01-22 18:11 views from another schema fernando gamba <gamba.fernando@gmail.com>
@ 2008-01-22 18:29 ` Joshua D. Drake <jd@commandprompt.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Joshua D. Drake @ 2008-01-22 18:29 UTC (permalink / raw)
  To: fernando gamba <gamba.fernando@gmail.com>; +Cc: pgsql-admin

-----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-----


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2008-01-22 18:29 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-01-22 18:11 views from another schema fernando gamba <gamba.fernando@gmail.com>
2008-01-22 18:29 ` Joshua D. Drake <jd@commandprompt.com>

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