citext tests "with and without index" had no index - Mailing list pgsql-hackers

From Kevin Grittner
Subject citext tests "with and without index" had no index
Date
Msg-id 1378936854.2770.YahooMailNeo@web162903.mail.bf1.yahoo.com
Whole thread Raw
List 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 by date:

Previous
From: Andres Freund
Date:
Subject: Re: Valgrind Memcheck support
Next
From: David Fetter
Date:
Subject: Re: Protocol forced to V2 in low-memory conditions?