[PERFORM] wal_level=archive gives better performance than minimal - why?

2012-01-12 Thread Tomas Vondra
Hi all, I've run a series fo pgbench benchmarks with the aim to see the effect of moving the WAL logs to a separate drive, and one thing that really surprised me is that the archive log level seems to give much better performance than minimal log level. On spinning drives this is not noticeable,

Re: [PERFORM] Partitioning by status?

2012-01-12 Thread Josh Berkus
Mike, > Is it practical to partition on the status column and, eg, use triggers to > move a row between the two partitions when status is updated? Any > surprises to watch for, given the status column is actually NULL for active > data and contains a value when archived? When I've done this befo