I've written a HOWTO on how to create new aggregate functions to create list (comma lists, HTML lists, etc.). It explains the purpose of these, and gives an example of how to create one in pgplsql. The HOWTO is written for the Zope site, but it's not really Zope- or Python- specific. http://www.zope.org/Members/pupq/pg_in_aggregates Hoping someone finds it useful. Cheers, -- Joel Burton <[EMAIL PROTECTED]> Director of Information Systems, Support Center of Washington ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/users-lounge/docs/faq.html