Re: Some new list.c primitives - Mailing list pgsql-hackers

From Neil Conway
Subject Re: Some new list.c primitives
Date
Msg-id 42E837A4.4050006@samurai.com
Whole thread Raw
In response to Re: Some new list.c primitives  (Gavin Sherry <swm@linuxworld.com.au>)
Responses Re: Some new list.c primitives
List pgsql-hackers
Gavin Sherry wrote:
> list_add() doesn't really describe what it does.

I agree -- the functionality itself is fine, of course, but it would be 
nice to have a better name.

> I was thinking either list_cond_add() or list_merge().

What about list_append_distinct()? (And list_append_all_distinct() for 
the "merge two lists" case.)

-Neil


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: --enable-thread-safety on Win32
Next
From: Gavin Sherry
Date:
Subject: Re: Autovacuum to-do list