Re: getting around 'out of memory' errors

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: getting around 'out of memory' errors
Дата
Msg-id 4858.1156431027@sss.pgh.pa.us
обсуждение исходный текст
Ответ на getting around 'out of memory' errors  (Rajarshi Guha <rguha@indiana.edu>)
Ответы Re: getting around 'out of memory' errors  (Rajarshi Guha <rguha@indiana.edu>)
Список pgsql-general
Rajarshi Guha <rguha@indiana.edu> writes:
> I have a table, A with 15 fields, out of which I am interested in 2
> fields, a and b. The table has 8,000,000 rows

> I have another table, B, which has 3 fields a, c, and d. The field a
> references field a in table A. Table B is empty at this point.

> I tried to do an insert using the following command:
> insert into B (a,c,d) select a, f1(b), f2(b) from A;

I think you are getting burnt by the list of pending trigger actions
to check the foreign-key references in B.  Might be easiest to drop the
foreign key constraint, fill table B, re-add the constraint.  I forget
how smart 7.4 is about adding FK constraints exactly, but it shouldn't
run out of memory anyway.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Can't open Postgres at all!!!
Следующее
От: "Alexander Farber"
Дата:
Сообщение: undefined reference to `PQprepare' with postgresql-dev 7.4.7-6sarge2