Re: Query precompilation?
От | Thomas Lockhart |
---|---|
Тема | Re: Query precompilation? |
Дата | |
Msg-id | 3A9C6DFC.DF44A760@alumni.caltech.edu обсуждение исходный текст |
Ответ на | Query precompilation? (Steffen Emil Thorkildsen <steffent@ifi.uio.no>) |
Список | 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 по дате отправления: