Re: [SQL] Does VACUUM reorder tables on clustered indices

2005-12-22 Thread Andrew Sullivan
On Wed, Dec 21, 2005 at 06:36:45PM -0500, Chris Browne wrote: > If I'm considering clustering the Slony-I "sl_log_1" table, forcing it > into memory *is* something I'll consider doing in order to minimize > the time that would-be writers are blocked from writing... Given what Tom Lane recently rep

Re: [SQL] How to increase row deletion efficiency?

2005-12-22 Thread Alexander Stanier
Have only just had a chance to try this. There were several missing indexes on the referencing columns including one on a table of circa 150K records. It now completes in a couple of minutes. Also it appears to be quicker if one doesn't defer the constraints. Thanks for the advice. Regards, Al

Re: [SQL] Querying date_time for date only ?

2005-12-22 Thread Bruce Momjian
Aarni Ruuhim?ki wrote: > Hello List, > > I have a time stamp without time zone field, -MM-DD hh:mm:ss, in > my table. I want to also find something just for a particular day > regardless of the time. > > (Pg)SQL way to do this ? Yes. You can use date_trunc(): test=> select date_tr