Re: Substitute for synonym in Oracle after migration to postgres

From: aditya desai <admad123(at)gmail(dot)com>
To: Pgsql Performance <pgsql-performance(at)lists(dot)postgresql(dot)org>
Subject: Re: Substitute for synonym in Oracle after migration to postgres
Date: 2021-04-06 13:19:16
Message-ID: CAN0SRDHk59R3xAx9iZORaP6+v1zAoxjBrq2SOjJNDTztANZ92w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Thanks will check.

On Tue, Apr 6, 2021 at 4:11 PM hubert depesz lubaczewski <depesz(at)depesz(dot)com>
wrote:

> On Tue, Apr 06, 2021 at 01:22:31PM +0530, aditya desai wrote:
> > Hi,
> > We have to access data from one schema to another. We have created a
> view for this but performance is not good. We tried
> > materialized views as well but Refresh MV is creating problem as it puts
> and access exclusive locks.
> > Is there any other way to achieve this?
>
> Yes, just use the other table right in your query. There is no need to
> add wrappers.
>
> select * from schema1.table join schema2.table on ...
>
> depesz
>

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2021-04-06 13:25:53 Re: select count(*) is slow
Previous Message aditya desai 2021-04-06 13:14:02 select count(*) is slow