[GENERAL] Batch processing select

2004-11-02 Thread Steve Crawford
I'm still mulling the best way to handle this situation. I have a table that describes work to be processed. This table includes a description of the work as well as priority and scheduling information (certain records can only be handled by certain client processes or at particular times of th

Re: [GENERAL] Batch processing

2003-07-29 Thread Franco Bruno Borghesi
Maybe the best option (specialy if you need users to control the jobs) would be to create a table like this: CREATE TABLE batchjobs (    id SERIAL,    sql TEXT NOT NULL,    done BOOLEAN NOT NOOL DEFAULT false ); Then you create a pl/pgsql function that iterates every "undone" record from this