On 11th of July, Tom Lane committed patch: Add array_remove() and array_replace() functions. master These functions support removing or replacing array element value(s) matching a given search value. Although intended mainly to support a future array-foreign-key feature, they seem useful in their ...