Siden PostgreSQL version 9 gøres dette blot ved at bruge string_agg :
SELECT
cmsdocument.internaldocid,
cmsdocument.documentid,
cmsdocument.versionid,
cmsdocversion.title,
string_agg(cmstag.tagname, ',')
FROM
public.cmsobjecttag,
public.cmstag,
public.cmsdocument,
public.cmsdocversion,
public.cmsuser
WHERE
cmsobjecttag.tagid = cmstag.tagid AND
cmsobjecttag.objectid = cmsdocument.internaldocid AND
cmsdocument.internaldocid = cmsdocversion.internaldocid AND
cmsdocument.userid = cmsuser.userid AND
cmsdocversion.state = 'published' AND
cmsobjecttag.objecttype = '102'
GROUP BY
cmsdocument.internaldocid,
cmsdocument.documentid,
cmsdocument.versionid,
cmsdocversion.title