Oleg, > ERROR: column "query.query" must appear in the GROUP BY clause or be > used in an aggregate function
Apparently the parser thinks you have an aggregate function in there. Do you? -- --Josh Josh Berkus Aglio Database Solutions San Francisco ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org