Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 102CF633564 for ; Mon, 3 May 2010 08:57:20 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 60137-01 for ; Mon, 3 May 2010 11:57:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id 821E9633551 for ; Mon, 3 May 2010 08:57:12 -0300 (ADT) Received: by fxm10 with SMTP id 10so2011569fxm.19 for ; Mon, 03 May 2010 04:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=oxxuw4dTuLFy6nPF1i7alF+gqR4BDkEHZV3kpUgTUwI=; b=QZAFdshtk0No63wHHBjnpxqP1gTIK+TsdI5kocaLqfMXFV2TauUEhH9rFP8MbtAM// CcZLkwWe78mlzktoqELr87CEAewoOp9c94MUwL4xpD9WGN/R3ytdEevyPaSoUGJII/76 kthar/vokcbWfuVJcGOWOPZNTIbqDX+96vxJ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=bUYbeqI4jc6wJs71inDH/YGLIGO2kO4nE/fL4Y+6YL+Uohw/Uda3Cx8ZArc2Mq3eM4 Z9pIMEnAJFw/1DU4KuGkLOxdSRelVkrL2lB9jKXq0l6gCEzmcFWk+sWwxEwWzqP40JhJ d9/kbfS65APb4Tb2ywtD/WIFMA/Bz1JqYIxaA= Received: by 10.239.186.1 with SMTP id e1mr1440234hbh.162.1272887830135; Mon, 03 May 2010 04:57:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.181.197 with HTTP; Mon, 3 May 2010 04:56:50 -0700 (PDT) In-Reply-To: <20100503111556.18910@gmx.net> References: <20100503111556.18910@gmx.net> From: =?ISO-8859-1?Q?C=E9dric_Villemain?= Date: Mon, 3 May 2010 13:56:50 +0200 Message-ID: Subject: Re: out of memory ... To: Jan-Peter Seifert Cc: pgsql-admin@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=AWL=0.000, BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201005/17 X-Sequence-Number: 34490 2010/5/3 Jan-Peter Seifert : > Hello, > > how fatal is it for the server/data if a server runs out of memory? > > Happened on a Windows server some time ago. A transaction got too large. = In the log it began with: > > ------------ > TopMemoryContext: 37171728 total in 4046 blocks; 67640 free (4060 chunks)= ; 37104088 used > =A0TopTransactionContext: 24576 total in 2 blocks; 18848 free (17 chunks)= ; 5728 used > =A0 =A0CurTransactionContext: 8192 total in 1 blocks; 8176 free (1 chunks= ); 16 used > ... > ------------ > > Although all other clients had been closed no new connection was possible= to terminate the session responsible for the out of memory problem. I gues= s it's because this transaction had been started by a superuser ... > > ------------ > > In the end the server was shut down via the service manager. > > On the next start of the server the log contained the following lines: > > ------------ > LOG: =A0database system was interrupted; last known up at 2010-03-26 11:2= 2:36 CET > LOG: =A0database system was not properly shut down; automatic recovery in= progress > LOG: =A0record with zero length at 1F/D2454CD0 > ------------ > > The data still seemed to be okay - all the other transactions made before= seem to be in the database. > > Is it okay to continue using the database(s) or is there a risk of hidden= data corruption (fsync is on)? okay to continue if your filesystem didn't have issues (if postgres start, then it is ok from its side) > > Could you tell me, please? > > Thank you very much, > > Peter > > > -- > GRATIS f=FCr alle GMX-Mitglieder: Die maxdome Movie-FLAT! > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 > > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin > --=20 C=E9dric Villemain