Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 5C61A64FCC9 for ; Tue, 12 Aug 2008 05:32:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 56300-09 for ; Tue, 12 Aug 2008 05:32:46 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by postgresql.org (Postfix) with ESMTP id A01D664FCD9 for ; Tue, 12 Aug 2008 05:32:49 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.1/8.14.1) with ESMTP id m7C8Wkeo058409 for ; Tue, 12 Aug 2008 05:32:46 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.1/8.14.1/Submit) id m7C8H0ej045456 for pgsql-performance@postgresql.org; Tue, 12 Aug 2008 05:17:00 -0300 (ADT) (envelope-from news) From: "Sabin Coanda" X-Newsgroups: pgsql.performance Subject: Re: long transaction Date: Tue, 12 Aug 2008 11:17:12 +0300 Organization: Hub.Org Networking Services Lines: 9 Message-ID: References: <120621.32315.qm@web59503.mail.ac4.yahoo.com> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Original To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200808/114 X-Sequence-Number: 30995 > long running transactions can be evil. is there a reason why this has > to run in a single transaction? This single transaction is used to import new information in a database. I need it because the database cannot be disconected from the users, and the whole new data has to be consistently. There are different constraints that are checked during the import.