Re: large numbers of inserts out of memory strategy

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: large numbers of inserts out of memory strategy
Date: 2017-12-01 01:27:10
Message-ID: CAKFQuwY-2swaoSA2c2Lp_Sff6yv+qtq2yuyULS46OXeh4qG_Kw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Nov 30, 2017 at 10:40 AM, Peter J. Holzer <hjp-pgsql(at)hjp(dot)at> wrote:

>
> By default psql enables autocommit which causes an implicit commit after
> every statement. With a do block I'm not sure whether that means after
> the do block or after each statement within the do block. I'd just turn
> autocommit off and add explicit commits wherever I wanted them.

​A DO block's contents is a single text literal (i.e., data, not SQL) as
far as psql is concerned​ - the atomic SQL command is the entire DO...END
construct.

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Joseph Krogh 2017-12-01 01:41:48 Sv: Re: Removing INNER JOINs
Previous Message David Rowley 2017-12-01 01:20:19 Re: Removing INNER JOINs