Re: [HACKERS] Idea on how to simplify comparing two sets
От
Joel Jacobson
Тема
Re: [HACKERS] Idea on how to simplify comparing two sets
Дата
Msg-id
CAASwCXdWON5udZ0x77Epn0Df5WfsCHBAUWAFALPO3hC0a21m=Q@mail.gmail.com
Ответ на
Re: [HACKERS] Idea on how to simplify comparing two sets (David Fetter)
Список
Дерево обсуждения
[HACKERS] Idea on how to simplify comparing two sets Joel Jacobson <joel@trustly.com>
Re: [HACKERS] Idea on how to simplify comparing two sets Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Idea on how to simplify comparing two sets Nico Williams <nico@cryptonector.com>
Re: [HACKERS] Idea on how to simplify comparing two sets Joel Jacobson <joel@trustly.com>
Re: [HACKERS] Idea on how to simplify comparing two sets Merlin Moncure <mmoncure@gmail.com>
Re: [HACKERS] Idea on how to simplify comparing two sets Pantelis Theodosiou <ypercube@gmail.com>
Re: [HACKERS] Idea on how to simplify comparing two sets "David G. Johnston" <david.g.johnston@gmail.com>
Re: [HACKERS] Idea on how to simplify comparing two sets Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Idea on how to simplify comparing two sets Nico Williams <nico@cryptonector.com>
Re: [HACKERS] Idea on how to simplify comparing two sets Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: [HACKERS] Idea on how to simplify comparing two sets Corey Huinker <corey.huinker@gmail.com>
Re: [HACKERS] Idea on how to simplify comparing two sets Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: [HACKERS] Idea on how to simplify comparing two sets David Fetter <david@fetter.org>
Re: [HACKERS] Idea on how to simplify comparing two sets David Fetter <david@fetter.org>
Re: [HACKERS] Idea on how to simplify comparing two sets Joel Jacobson <joel@trustly.com>
Re: [HACKERS] Idea on how to simplify comparing two sets Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] Idea on how to simplify comparing two sets Anders Granlund <anders.granlund@trustly.com>
Re: [HACKERS] Idea on how to simplify comparing two sets Joel Jacobson <joel@trustly.com>
Re: [HACKERS] Idea on how to simplify comparing two sets Pantelis Theodosiou <ypercube@gmail.com>
Re: [HACKERS] Idea on how to simplify comparing two sets Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Idea on how to simplify comparing two sets Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Idea on how to simplify comparing two sets David Fetter <david@fetter.org>
Re: [HACKERS] Idea on how to simplify comparing two sets Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Idea on how to simplify comparing two sets "David G. Johnston" <david.g.johnston@gmail.com>
On Tue, Feb 7, 2017 at 6:28 PM, David Fetter wrote:
> This could be shortened further to the following if we ever implement
> DISTINCT for window functions, which might involve implementing
> DISTINCT via hashing more generally, which means hashable
> types...whee!
>
> SELECT array_agg(DISTINCT (a IS NOT NULL)::int + (b IS NOT NULL)::int) OVER () = '{2}'
> FROM a FULL JOIN b ON ...
That's still a lot more syntax than just adding "IS NOT DISTINCT FROM"
in between the sets.
I just thought the general approach at looking for ways to express new
things in SQL,
without introducing new keywords, but instead rely on existing keywords but
that currently are syntax errors when used in some semantic way,
is an interesting approach to allow extending the SQL syntax without
breaking backwards compatibility.
Are there any historical examples of when this approach has been used
to make progress in PostgreSQL?
В списке pgsql-hackers по дате отправления
От: Alvaro Herrera
Дата: