Re: Query precompilation? - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: Query precompilation?
Date
Msg-id 3A9C6DFC.DF44A760@alumni.caltech.edu
Whole thread Raw
In response to Query precompilation?  (Steffen Emil Thorkildsen <steffent@ifi.uio.no>)
List pgsql-hackers
Mario Weilguni wrote:
> 
> (...)
> > >
> > > I don't care about integrity etc!
> >
> > You should !-)
> >
> > You can find some valueable tips in the documentation:
> > http://www.de.postgresql.org/users-lounge/docs/7.0/user/c4929.htm
> >
> 
> In the docs there is this paragraph:
> >Disable Auto-commit
> >
> > Turn off auto-commit and just do one commit at the end. Otherwise Postgres
> >is doing a lot of work for each record added. In general when you are doing
> >bulk inserts, you want to turn off some of the database features to gain
> >speed.
> 
> This sounds nice, but I've read a lot of postgres documents and still do not
> know how to disable autocommit. Is this possible? And how?

At the moment, use a BEGIN/COMMIT block around a set of insert
statements. Someday we'll likely have an explicit command to affect the
behavior.
                    - Thomas


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: Release in 2 weeks ...
Next
From: Thomas Lockhart
Date:
Subject: Re: [ODBC] Re: Release in 2 weeks ...