Curtis Scheer <[EMAIL PROTECTED]> writes: > Does anyone have any examples of how I would make a stored procedure in > plpgsql that would allow for passing a list or arrays of values to be used > in an sql IN clause? Like so: select * from table where field1 in (values).
Probably the "field1 = ANY (arrayvalue)" syntax is what you want. Note however that this can't be turned into an indexscan on field1 in existing releases (8.2 will be able to do it). regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster