PostgreSQL संस्करण 9 के बाद से, यह केवल का उपयोग करके किया जाता है। 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