array_remove(anyarray, anyarray) - Mailing list pgsql-hackers

From Jim Nasby
Subject array_remove(anyarray, anyarray)
Date
Msg-id 566A1814.1030802@BlueTreble.com
Whole thread Raw
Responses BEGINNER HACKERS: array_remove(anyarray, anyarray)  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-hackers
Recently I had need of removing occurrences of a number of values from 
an array. Obviously I could have nested array_remove() call or wrapped 
the whole thing in a SELECT unnest(), but that seems rather silly and 
inefficient.

Any one have objections to changing array_replace_internal() to make 
search and repalace arrays instead of Datums?
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com



pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Fwd: [GENERAL] pgxs/config/missing is... missing
Next
From: Michael Paquier
Date:
Subject: Re: Error with index on unlogged table