What I basically want to do is mimic the array_cat functionality in a postgres table, but to subtract an array instead.
There is a function array_remove but it only removes one element at a time.
I can not figure out how to achieve this in a single query and i do not wish to use a loop. Any help would be appreciated.
array_removemany(ARRAY{1,2,3,4}, {1,2}) should give result {3,4}