Re: [GENERAL] select updates pg_stat_database

2006-08-14 Thread Alvaro Herrera
Jeff Davis wrote: > I have noticed that all SELECT queries alone in a transaction also > update pg_stat_database (I know it's just a view that calls > pg_stat_get_db_xact_commit()). The stuff in the stats collector is not stored on disk. Or, rather, it is, but not in the same way as regular table

[GENERAL] select updates pg_stat_database

2006-08-14 Thread Jeff Davis
I have noticed that all SELECT queries alone in a transaction also update pg_stat_database (I know it's just a view that calls pg_stat_get_db_xact_commit()). Does that mean that SELECTs by themselves require a disk write? If so, is that a synchronous disk write? Is it due to something else entirel