Re: Prepared statement already exists

Поиск
Список
Период
Сортировка
От Sam Mason
Тема Re: Prepared statement already exists
Дата
Msg-id 20081121141946.GV2459@frubble.xen.chris-lamb.co.uk
обсуждение исходный текст
Ответ на Re: Prepared statement already exists  (WireSpot <wirespot@gmail.com>)
Список pgsql-general
On Fri, Nov 21, 2008 at 09:55:11AM +0200, WireSpot wrote:
> What would make it all the way better was if the database would do
> that last step for you as well: automatically recognize statements
> that do the same thing and return the already existing handle.

This is somewhat difficult; things to consider are different data
distributions (i.e. the optimal plan changes depending on if you're
searching for common vs. rare values) changes to schema (table foo and
bar are now called the opposite) and various other issues.  It would of
course be possible for PG to do this, it's just getting it all correct
and it being a win in the common case is difficult.


  Sam

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

Предыдущее
От: Rafael Martinez
Дата:
Сообщение: Re: Using Postgres to store high volume streams of sensor readings
Следующее
От: Sam Mason
Дата:
Сообщение: Re: Postgres mail list traffic over time