Re: [PERFORM] count(*) using index scan in "query often, update rarely" environment

2005-10-07 Thread Cestmir Hybl
sing index scan in "query often, update rarely" environment On Fri, Oct 07, 2005 at 11:24:05AM +0200, Cestmir Hybl wrote: Isn't it possible (and reasonable) for these environments to keep track of whether there is a transaction in progress with update to given table and if not

Re: [PERFORM] count(*) using index scan in "query often, update rarely" environment

2005-10-07 Thread Cestmir Hybl
count() queries in environment with infrequent updates.   Cestmir - Original Message - From: hubert depesz lubaczewski To: Cestmir Hybl Cc: pgsql-performance@postgresql.org Sent: Friday, October 07, 2005 11:54 AM Subject: Re: [PERFORM] count(*) using index

[PERFORM] count(*) using index scan in "query often, update rarely" environment

2005-10-07 Thread Cestmir Hybl
alue (count(*)) to perform this kind of query?   (sorry for disturbing if this was already discussed)   Regards,   Cestmir Hybl

Re: [PERFORM] MySQL vs PG TPC-H benchmarks

2004-04-21 Thread Cestmir Hybl
> Looks like he's using the default postgresql.conf settings in which case > I'm not suprised at pg looking so slow. The question also is, IMHO, why the hell, postgreSQL still comes out of the box with so stupid configuration defaults, totally underestimated for todays average hardware configurati

Re: [PERFORM] Ignoring index on (A is null), (A is not null) conditions

2003-11-04 Thread Cestmir Hybl
First of all, thanks for all your suggestions. They were of two classes: 1. use different data representation (special constant from column domain instead of NULL) This is possible, of course, but it makes data model less portable and requires changes in database abstraction layer of application

Re: [PERFORM] Ignoring index on (A is null), (A is not null) conditions

2003-10-30 Thread Cestmir Hybl
Are you seeing this question as totally off-topic in this list, or there is really no one who knows something about indexing "is null" bits in postgres? Regards CH > Hi, > > suppose, for simplicity, there is a table with index like this: > > create table TABLE1 ( > A integer > ); > create inde

[PERFORM] Ignoring index on (A is null), (A is not null) conditions

2003-10-28 Thread Cestmir Hybl
Hi, suppose, for simplicity, there is a table with index like this: create table TABLE1 ( A integer ); create index TABLE1_A on TABLE1 (A); My question is: why psql (7.3.3) does not use index when filtering by A IS NULL, A IS NOT NULL expressions? In fact, I need to filter by expression ((A i