Re: Out of memory running 560 MB query

Поиск
Список
Период
Сортировка
От Rosser Schwarz
Тема Re: Out of memory running 560 MB query
Дата
Msg-id CAFnxYwhgfLqyvvgYE-LMbiQHsdMX=jRi6=oR9jSPor2AnH2mWg@mail.gmail.com
обсуждение исходный текст
Ответ на Out of memory running 560 MB query  ("Morgan Ramsay" <morgan.ramsay@gmail.com>)
Ответы Re: Out of memory running 560 MB query  ("Morgan Ramsay" <morgan.ramsay@gmail.com>)
Список pgsql-admin
On Sun, Sep 14, 2014 at 5:18 PM, Morgan Ramsay <morgan.ramsay@gmail.com> wrote:

Any idea how to successfully run a query that large? What’s the size limit of a query?


Without seeing your actual query (or a syntactically similar one, if there are private details you can't disclose), it's difficult to say.  In general, though, a couple of thoughts come to mind:

Can you run it as a single COPY statement, instead of however many individual INSERTS?  Failing that, can you use the multi-row VALUES syntax for your INSERT?

As an aside, this type of question is probably more suited for the pgsql-sql list, rather than -admin.

rls

--
:wq

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

Предыдущее
От: "Morgan Ramsay"
Дата:
Сообщение: Out of memory running 560 MB query
Следующее
От: "Morgan Ramsay"
Дата:
Сообщение: Re: Out of memory running 560 MB query