Re: Commutation of array SOME/ANY and ALL operators

2024-10-24 Thread Matthew Morrissette Vance
* * !~~ * !~~* or !~* or *~! On Wed, Oct 23, 2024 at 6:57 PM Tom Lane wrote: > Matthew Morrissette Vance writes: > > If instead, PostgreSQL could support the commutation of the `SOME/ANY` > and > > `ALL` operators so that the `ANY(array)` could be on both sides of the >

Commutation of array SOME/ANY and ALL operators

2024-10-23 Thread Matthew Morrissette Vance
Assume the following table structure for my examples. CREATE TABLE my_table ( id integer GENERATED ALWAYS AS IDENTITY PRIMARY KEY, int_array integer[], text_array text[] ); INSERT INTO my_table (id, int_array, text_array) VALUES (1, '{5,10}', '{"1234%", "%5678"}'), (2, '{8,15}', '{"