Re: SQL compatibility reminder: MySQL vs PostgreSQL - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject Re: SQL compatibility reminder: MySQL vs PostgreSQL
Date
Msg-id 4B94C5A7.2090308@cs.helsinki.fi
Whole thread Raw
In response to Re: SQL compatibility reminder: MySQL vs PostgreSQL  ("Pierre C" <lists@peufeu.com>)
Responses Re: SQL compatibility reminder: MySQL vs PostgreSQL
List pgsql-hackers
On 2010-03-08 11:17 +0200, Pierre C wrote:
> - index skip scans (well, MySQL doesn't really do index skip scans, but  
> since it can do index-only scans, it's an approximation)

As far as I can tell, we already do index skip scans:

=> create index foo_a_b_idx on foo(a,b);
CREATE INDEX

=> explain analyze select * from foo where b = 2;
                                               QUERY PLAN
---------------------------------------------------------------------------Index Scan using foo_a_b_idx on foo
(cost=0.00..20.30rows=5 width=8)
 
(actual time=0.027..0.057 rows=1 loops=1)  Index Cond: (b = 2)Total runtime: 0.075 ms
(3 rows)


Regards,
Marko Tiikkaja


pgsql-hackers by date:

Previous
From: Tim Bunce
Date:
Subject: Re: Core dump running PL/Perl installcheck with bleadperl [PATCH]
Next
From: "Pierre C"
Date:
Subject: Re: SQL compatibility reminder: MySQL vs PostgreSQL