Re: how to use multiple schema's

From: "Roderick A(dot) Anderson" <raanders(at)cyber-office(dot)net>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to use multiple schema's
Date: 2009-09-02 17:30:07
Message-ID: 4A9EAB9F.2050207@cyber-office.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Sam Mason wrote:
> On Wed, Sep 02, 2009 at 10:52:07AM -0400, Himanshu Gupta wrote:
>> Thanks for response, bit if I point it to all the schema, I am just
>> wondering how data insertion will work, I have multiple ables with
>> same name in these applications.
>
> Do you know that you can schema qualify table names don't you? For
> example, if you have a "users" table in schemas "app1" and "app2", you
> can refer to the table in the first schema as:
>
> SELECT uid, name
> FROM app1.users;

Himanshu didn't mention if he has access to the code for the
applications or can edit them.

\\||/
Rod
--

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Roderick A. Anderson 2009-09-02 17:34:46 Re: how to use multiple schema's
Previous Message V S P 2009-09-02 17:19:21 [Q] optmizing postgres for 'single client' / many small queries