Re: [PERFORM] An "obvious" index not being used

2008-06-19 Thread Daniele Varrazzo
Daniele Varrazzo <[EMAIL PROTECTED]> wrote: > >> select count(*) from foo >> where foo.account_id in ( >> select id from accounts where system = 'abc'); > >> Total runtime: 13412.226 ms > > Out of curiosity, how does it do with the logically equivalent?: > > select count(

Re: [PERFORM] An "obvious" index not being used

2008-06-19 Thread Kevin Grittner
>>> Daniele Varrazzo <[EMAIL PROTECTED]> wrote: > select count(*) from foo > where foo.account_id in ( > select id from accounts where system = 'abc'); > Total runtime: 13412.226 ms Out of curiosity, how does it do with the logically equivalent?: select count(*) from f

Re: [PERFORM] Tsearch2 Initial Search Speed

2008-06-19 Thread Howard Cole
Good idea. Note that Postgres is already doing this to some extent with TOAST - read http://www.postgresql.org/docs/8.3/interactive/storage-toast.html - unfortunately, there doesn't seem to be an option to always move particular columns out to TOAST. Your idea will produce an even smaller ta

Re: [PERFORM] WAL DUDAS

2008-06-19 Thread Albe Laurenz
Antonio Perez wrote: [wonders why his online backup / recovery test didn't work] > 1.Se crea una instancia de postgreSQL > > 2.Se crea un directorio $PGDATA/walback donde se almacenararn los wal > antiguos > > 3.Se exporta una variable $PGDATA2 que es la ubicacion del respaldo del