citext tests "with and without index" had no index

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема citext tests "with and without index" had no index
Дата
Msg-id 1378936854.2770.YahooMailNeo@web162903.mail.bf1.yahoo.com
обсуждение исходный текст
Список pgsql-hackers
I added the CREATE INDEX statement in the below citext regression
tests, since it seemed to have been omitted by accident:

-- Test aggregate functions and sort ordering

CREATE TEMP TABLE srt (
   name CITEXT
);

INSERT INTO srt (name)
VALUES ('aardvark'),
       ('AAA'),
       ('aba'),
       ('ABC'),
       ('abd');

CREATE INDEX srt_name ON srt (name);

-- Check the min() and max() aggregates, with and without index.
set enable_seqscan = off;
SELECT MIN(name) AS "AAA" FROM srt;
SELECT MAX(name) AS abd FROM srt;
reset enable_seqscan;
set enable_indexscan = off;
SELECT MIN(name) AS "AAA" FROM srt;
SELECT MAX(name) AS abd FROM srt;
reset enable_indexscan;

-- Check sorting likewise
set enable_seqscan = off;
SELECT name FROM srt ORDER BY name;
reset enable_seqscan;
set enable_indexscan = off;
SELECT name FROM srt ORDER BY name;
reset enable_indexscan;

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Valgrind Memcheck support
Следующее
От: David Fetter
Дата:
Сообщение: Re: Protocol forced to V2 in low-memory conditions?