Re: [GENERAL] How many records to delete ?

2010-01-07 Thread Craig Ringer
On 7/01/2010 5:03 AM, shulkae wrote: I am writing a shell script which runs as a cron entry. The objective is to delete older records from postgresql DB. I have thousands of records. What is the optimum number of records to delete in one delete command ( my script will delete records in a loop

Re: [GENERAL] How many records to delete ?

2010-01-06 Thread John R Pierce
shulkae wrote: I am writing a shell script which runs as a cron entry. The objective is to delete older records from postgresql DB. I have thousands of records. What is the optimum number of records to delete in one delete command as many as you need to, DELETE FROM yourtable AS t

Re: [GENERAL] How many records to delete ?

2010-01-06 Thread Rikard Bosnjakovic
On Wed, Jan 6, 2010 at 22:03, shulkae wrote: [...] > I have thousands of records. What is the optimum number of records to > delete in one delete command Optimum in which way? -- - Rikard - http://bos.hack.org/cv/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make

[GENERAL] How many records to delete ?

2010-01-06 Thread shulkae
I am writing a shell script which runs as a cron entry. The objective is to delete older records from postgresql DB. I have thousands of records. What is the optimum number of records to delete in one delete command ( my script will delete records in a loop and I want to ensure that the swap file