Re: [HACKERS] problem with coalesce

2005-08-18 Thread Josh Berkus
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 broadc

[HACKERS] problem with coalesce

2005-08-18 Thread Oleg Bartunov
Hi there, I don't understand why this select doesn't works: regression=# select coalesce( tp_rewrite_substitute(ARRAY[query, test.target, test.sample]), query) from test,to_tsquery('new2 & york2 & hotel') as query where query @ te