Re: Postgres views cannot use both union and join/where
От | David G. Johnston |
---|---|
Тема | Re: Postgres views cannot use both union and join/where |
Дата | |
Msg-id | CAKFQuwZ+L+HLFs0Fdz2W4NYYxxk6Ko1CMQFyo-c1-ba-VuqDkA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Postgres views cannot use both union and join/where (Michael Lewis <mlewis@entrata.com>) |
Ответы |
Re: Postgres views cannot use both union and join/where
|
Список | pgsql-performance |
On Tuesday, October 19, 2021, Michael Lewis <mlewis@entrata.com> wrote:
Does that work? I've only seen that type of logic written as-
The are functionally equivalent, though the timing of the expression evaluation differs slightly.
It could also be written as an anti-join:
Select * from template as t where not exists (select 1 from template_staging as ts where t.name = ts.name)
David J.
В списке pgsql-performance по дате отправления: