Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 04D68B5DBD8 for ; Tue, 11 Oct 2011 15:28:34 -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 80150-09 for ; Tue, 11 Oct 2011 18:28:27 +0000 (UTC) X-Greylist: delayed 00:08:05.972657 by SQLgrey-1.8.0-rc2 Received: from mail-yw0-f46.google.com (mail-yw0-f46.google.com [209.85.213.46]) by mail.postgresql.org (Postfix) with ESMTP id 31186B5D803 for ; Tue, 11 Oct 2011 15:28:27 -0300 (ADT) Received: by ywb5 with SMTP id 5so6859065ywb.19 for ; Tue, 11 Oct 2011 11:28:26 -0700 (PDT) Received: by 10.236.145.74 with SMTP id o50mr31908357yhj.36.1318357220395; Tue, 11 Oct 2011 11:20:20 -0700 (PDT) Received: from AnibalVAIO ([190.128.222.90]) by mx.google.com with ESMTPS id r30sm31936474yhj.20.2011.10.11.11.20.14 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Oct 2011 11:20:15 -0700 (PDT) From: "Anibal David Acosta" To: "'Scott Marlowe'" Cc: References: <000001cc6fda$7e55fd20$7b01f760$@devshock.com> In-Reply-To: Subject: Re: should i expected performance degradation over time Date: Tue, 11 Oct 2011 15:20:12 -0300 Message-ID: <003001cc8842$6ced6ca0$46c845e0$@devshock.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHsI1FKu/mxvl84UJ0Y4KoiPGDhvALrDJ2tlSDlLAA= Content-Language: es-py X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.585 tagged_above=-10 required=5 tests=BAYES_00=-1.9, SARE_MILLIONSOF=0.315 X-Spam-Level: X-Archive-Number: 201110/108 X-Sequence-Number: 45330 Do you know if check_postgresql.pl can run on windows (with perl = installed)? Because our postgres installation is running on a Windows 2008 R2 server = but can't find any tool like this for windows :( Thanks! -----Mensaje original----- De: Scott Marlowe [mailto:scott.marlowe@gmail.com]=20 Enviado el: s=E1bado, 10 de septiembre de 2011 02:30 p.m. Para: Anibal David Acosta CC: pgsql-performance@postgresql.org Asunto: Re: [PERFORM] should i expected performance degradation over = time On Sat, Sep 10, 2011 at 10:55 AM, Anibal David Acosta wrote: > Sometimes I read that postgres performance is degraded over the time=20 > and something people talk about backup and restore database solve the problem. > > It is really true? Yes and no. If you let things get out of hand, a backup and restore may = be your best choice. > I have postgres 9.0 on a windows machine with The autovacuum is ON Good start > Transactional table has about 4 millions of rows inserted per day. > > In the midnight all rows are moved to a historical table and in the=20 > historical table rows are about 2 months, any transaction older than 2 = > months are deleted daily. You should look into table partitioning then. but as long as vacuum = keeps up you're probably still ok. Look at the check_postgresql.pl script by = the same guy who wrote Bucardo. It'll keep you advised of how much bloat = your tables have. > So, my question is, if Should I expect same performance over time (example: > after 1 year) or should I expect a degradation and must implements=20 > come technics like backup restore every certain time? If you maintain your db properly, performance should stay good. If you ignore bloat issues you might have some issues.