Re: [HACKERS] Idea on how to simplify comparing two sets

Поиск
Список
Период
Сортировка
От Joel Jacobson
Тема Re: [HACKERS] Idea on how to simplify comparing two sets
Дата
Msg-id CAASwCXdmcJrvuhJDUX1GK+PX=Xp+pzRavBPWtvp8AhXGPfpnJQ@mail.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  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-hackers
On Tue, Feb 7, 2017 at 4:58 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Joel Jacobson <joel@trustly.com> writes:
>> Currently there is no simple way to check if two sets are equal.
>
> Uh ... maybe check whether SELECT set1 EXCEPT SELECT set2
> and SELECT set2 EXCEPT SELECT set1 are both empty?

Yes, that's one way, but it's ugly as you have to repeat yourself and
write both sets two times.
Not an issue for small queries, but if you have two big queries stored
in a .sql file,
you would have to modify both places for each query and always make
sure they are identical.



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] [COMMITTERS] pgsql: Release note updates.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] [PATCH] configure-time knob to set default ssl ciphers