Re: Substitute for synonym in Oracle after migration to postgres

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: Substitute for synonym in Oracle after migration to postgres
Дата
Msg-id 20210406104148.GA28865@depesz.com
обсуждение исходный текст
Ответ на Substitute for synonym in Oracle after migration to postgres  (aditya desai <admad123@gmail.com>)
Ответы Re: Substitute for synonym in Oracle after migration to postgres
Список pgsql-performance
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



В списке pgsql-performance по дате отправления:

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: Substitute for synonym in Oracle after migration to postgres
Следующее
От: aditya desai
Дата:
Сообщение: select count(*) is slow