Re: Use of indexes with table inheritance

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Use of indexes with table inheritance
Дата
Msg-id 20050207223452.GC30539@dcc.uchile.cl
обсуждение исходный текст
Ответ на Use of indexes with table inheritance  (Christopher Petrilli <petrilli@gmail.com>)
Ответы Re: Use of indexes with table inheritance  (Christopher Petrilli <petrilli@gmail.com>)
Список pgsql-general
On Mon, Feb 07, 2005 at 01:59:16PM -0500, Christopher Petrilli wrote:
> I have a "master table" called events, and 10 subtables which are
> created using this:
>
>     CREATE TABLE events001 ( ) INHERITS (events) WITHOUT OIDS;
>
> I then build all the indexes on it, including a column called "src_ip":
>
>     CREATE INDEX events001_src_ip_idx ON events001(src_ip);
>
> Then I populate it with about 1M events per table, but none in the
> "master table".  I'm using this for data partitioning basically.

Any reason you don't use a single table?  Also, please post the EXPLAIN
ANALYZE of your query.

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"Estoy de acuerdo contigo en que la verdad absoluta no existe...
El problema es que la mentira sí existe y tu estás mintiendo" (G. Lama)

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

Предыдущее
От: Clodoaldo Pinto
Дата:
Сообщение: Re: Out of memory error
Следующее
От: Christopher Petrilli
Дата:
Сообщение: Re: Use of indexes with table inheritance