Re: Directing Partitioned Table Searches

Поиск
Список
Период
Сортировка
От Vick Khera
Тема Re: Directing Partitioned Table Searches
Дата
Msg-id AANLkTikG3eZVYq8m7MVhYhwPJmGDMWRj8dWuYCZynWej@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Directing Partitioned Table Searches  (Bill Thoen <bthoen@gisnet.com>)
Список pgsql-general
On Mon, Feb 7, 2011 at 1:17 PM, Bill Thoen <bthoen@gisnet.com> wrote:
> Thanks. That sounds simple enough. Since I want to automate this, I guess
> the next step is to learn how to create and  execute a "dynamic" query.  I
> think I know how to do that.
>

In perl, it looks something like this:

$part = compute_partition($value);
$sth = $dbh->prepare("select * from table_$part where foo=?");
$sth->execute($value);

you just interpolate the parts you need in the query string.

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

Предыдущее
От: Sylvain Rabot
Дата:
Сообщение: Maintenance commands on standby servers
Следующее
От: Edoardo Panfili
Дата:
Сообщение: Re: postgis 1.5.2 installation configure: WARNING: could not locate CUnit required for liblwgeom unit tests