[HACKERS] Optimizer - Mailing list pgsql-hackers

From Alexander Demenshin
Subject [HACKERS] Optimizer
Date
Msg-id 5efa34632666cc772b3d2bb233152f70
Whole thread Raw
List pgsql-hackers
Hi!

  What do you think about "learn" optimizer to use indices
  in queries like:

select max(i) from tab;

  Currently, even if "i" have *unique* index, value for max()
  is searched sequentially!

  And one more:

select * from tab where (s ~ '^aa');

  In this case, if "s" indexed, why not use index, since we know
  *first* characters, and can limit search range?

/Al

------------------------------

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Remove two things from TODO list.
Next
From: "Marc G. Fournier"
Date:
Subject: [HACKERS] Re: [QUESTIONS] Z39.50