Re: select count() out of memory

Поиск
Список
Период
Сортировка
От aklaver@comcast.net (Adrian Klaver)
Тема Re: select count() out of memory
Дата
Msg-id 102820071635.10028.4724BA37000E6D710000272C22007456729D0A900E04050E@comcast.net
обсуждение исходный текст
Ответ на select count() out of memory  (tfinneid@student.matnat.uio.no)
Ответы Re: select count() out of memory  (Thomas Finneid <tfinneid@student.matnat.uio.no>)
Список pgsql-general
 -------------- Original message ----------------------
From: Thomas Finneid <tfinneid@student.matnat.uio.no>
>
>
> Adrian Klaver wrote:
> > I might be missing the point, but couldn't you do a Copy to a single table
> > instead of multiple inserts and avoid the index overhead.
>
> Are you saying, have one large table with indexes and do a COPY to it or
> are you saying a one small empty table and do a COPY to it?
>
> thomas

I'm thinking do a COPY to one large table.  If the cost of indexing is relatively fixed as
you indicated in your previous post then you reduce the indexing overhead to each
COPY operation instead of each insert.

--
Adrian Klaver
aklaver@comcast.net

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Inheritance problem when restoring db
Следующее
От: Bob Pawley
Дата:
Сообщение: pg_restore