Re: memory error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: memory error
Дата
Msg-id 7082.1192637619@sss.pgh.pa.us
обсуждение исходный текст
Ответ на memory error  ("Oeschey, Lars (I/EK-142, extern)" <extern.Lars.Oeschey@AUDI.DE>)
Список pgsql-novice
"Oeschey, Lars (I/EK-142, extern)" <extern.Lars.Oeschey@AUDI.DE> writes:
> I have a table with 46 million rows, when I execute the following statement on it, I get an error:

> ALTER TABLE ONLY etefas.tbl_ecu ADD CONSTRAINT pk_tbl_ecu PRIMARY KEY (pk_ecu);
> HINWEIS:  ALTER TABLE / ADD PRIMARY KEY erstellt implizit einen Index »pk_tbl_ecu« für Tabelle »tbl_ecu«
> FEHLER:  Speicher aufgebraucht
> DETAIL:  Fehler bei Anfrage mit Grö�e 268435456.

> The statement came not from my head, but from a dump of the database (hence, the restore fails there, too). Am I
doingsomething wrong? 

What have you got maintenance_work_mem set to?

            regards, tom lane

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

Предыдущее
От: "Oeschey, Lars (I/EK-142, extern)"
Дата:
Сообщение: memory error
Следующее
От: "Nikolai Cheltsov"
Дата:
Сообщение: manage connections