Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 27A521EDD2F6 for ; Fri, 11 Nov 2011 04:16:07 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 26334-06 for ; Fri, 11 Nov 2011 08:16:00 +0000 (UTC) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id 77F8A1EDD2F5 for ; Fri, 11 Nov 2011 04:16:00 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id pAB8G0Xp003538 for ; Fri, 11 Nov 2011 04:16:00 -0400 (AST) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id pAB7pnk7076878 for pgsql-bugs@postgresql.org; Fri, 11 Nov 2011 03:51:49 -0400 (AST) (envelope-from news) From: Torsten Zuehlsdorff X-Newsgroups: pgsql.bugs Subject: Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost" Date: Fri, 11 Nov 2011 08:51:48 +0100 Organization: A noiseless patient Spider Lines: 30 Message-ID: <4EBCD414.90706@meisterderspiele.de> References: <201111091648.pA9GmXK23629@momjian.us> <4EBB3443.2020709@ringerc.id.au> <4EBB70D7.4000506@enterprisedb.com> <4EBB816C.2050402@meisterderspiele.de> <4EBB8A0C.4030704@hogranch.com> <4EBB98B8.6080202@meisterderspiele.de> <4EBBA573.2060901@enterprisedb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="AnkPUomeHXvuN7UdHvIkog"; logging-data="27573"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AAD/tD7qPNlOBpiBN5UPy" User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.5.0 In-Reply-To: <4EBBA573.2060901@enterprisedb.com> Cancel-Lock: sha1:bXZiJU6kjgcPIInD55fhj8l2EVg= To: pgsql-bugs@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-3.101 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-1.201 X-Spam-Level: X-Archive-Number: 201111/90 X-Sequence-Number: 31685 Heikki Linnakangas schrieb: >>>> Lossing data is very bad, the solution provided by Robert is really >>>> simple. I support Roberts approach. >>> >>> you support changing localhost to be something other than 127.0.0.1 to >>> hack around a poorly designed application?!? seriously? >> >> No, i support that PG should be able to not lossing data because of an >> easily catchable missconfiguration of the underlying system. > > You won't lose data. There are safeguards in place to print warnings in > the log when you approach transaction wrap-around, and after a certain > point the system will stop accepting new transactions, to prevent data > loss. The manual says that autovacuum protects againt loss of very old data: http://www.postgresql.org/docs/9.1/static/routine-vacuuming.html So either your statement is wrong or the manual. ;) If there is the possibility to lose data just because of this kind of missconfiguration, we should accept Roberts patch. Greetings, Torsten -- http://www.dddbl.de - ein Datenbank-Layer, der die Arbeit mit 8 verschiedenen Datenbanksystemen abstrahiert, Queries von Applikationen trennt und automatisch die Query-Ergebnisse auswerten kann.