unsubscribe
---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster
3-10'
GROUP BY month,client;
DELETE FROM stat WHERE SUBSTR(datetime,1,7)='2003-10';
FETCH ALL FROM total; <===
COMMIT;
and it does work as expected. FETCH spews out already deleted rows.
There is no problem with it.
--
Alexander Vlasenko
---(end of broadcast)---
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
COMMIT;
but it does not work, chokes on FETCH ALL.
I want to sum up all the money by month, delete all the rows
(possibly thousands of them) and insert one row per client
with monthly totals.
Obviously I cannot swap order of INSERT and DELETE here.
I hesitate to post this to [EMAIL PROTECTED],
d