Re: SQL compatibility reminder: MySQL vs PostgreSQL

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Re: SQL compatibility reminder: MySQL vs PostgreSQL
Дата
Msg-id 4B94C5A7.2090308@cs.helsinki.fi
обсуждение исходный текст
Ответ на Re: SQL compatibility reminder: MySQL vs PostgreSQL  ("Pierre C" <lists@peufeu.com>)
Ответы Re: SQL compatibility reminder: MySQL vs PostgreSQL  ("Pierre C" <lists@peufeu.com>)
Список 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 по дате отправления:

Предыдущее
От: Tim Bunce
Дата:
Сообщение: Re: Core dump running PL/Perl installcheck with bleadperl [PATCH]
Следующее
От: "Pierre C"
Дата:
Сообщение: Re: SQL compatibility reminder: MySQL vs PostgreSQL