Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VH6RY-0002Wc-BK for pgsql-performance@arkaria.postgresql.org; Wed, 04 Sep 2013 06:19:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VH6RX-0006rY-NM for pgsql-performance@arkaria.postgresql.org; Wed, 04 Sep 2013 06:19:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VH6RW-0006rR-KD for pgsql-performance@postgresql.org; Wed, 04 Sep 2013 06:19:54 +0000 Received: from mail.trovaprezzi.it ([2.228.21.217]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VH6RT-0003GR-DP for pgsql-performance@postgresql.org; Wed, 04 Sep 2013 06:19:54 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.trovaprezzi.it (Postfix) with ESMTP id 02A9E82008; Wed, 4 Sep 2013 08:15:10 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.7pixel.local Received: from mail.trovaprezzi.it ([127.0.0.1]) by localhost (zimbra.7pixel.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xt11RNxXVg8W; Wed, 4 Sep 2013 08:15:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.trovaprezzi.it (Postfix) with ESMTP id 8513A82012; Wed, 4 Sep 2013 08:15:09 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.7pixel.local Received: from mail.trovaprezzi.it ([127.0.0.1]) by localhost (zimbra.7pixel.local [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id XtC6AAOcusTW; Wed, 4 Sep 2013 08:15:08 +0200 (CEST) Received: from zimbra.7pixel.local (zimbra.7pixel.local [192.168.0.127]) by mail.trovaprezzi.it (Postfix) with ESMTP id 5FDD782008; Wed, 4 Sep 2013 08:15:08 +0200 (CEST) Date: Wed, 4 Sep 2013 08:15:08 +0200 (CEST) From: Roberto Grandi To: Kevin Grittner Cc: pgsql-performance@postgresql.org Message-ID: <1680047223.718929.1378275308275.JavaMail.root@trovaprezzi.it> In-Reply-To: <1378240470.79541.YahooMailNeo@web162905.mail.bf1.yahoo.com> References: <535715181.700956.1378223895627.JavaMail.root@trovaprezzi.it> <441706222.701556.1378224973704.JavaMail.root@trovaprezzi.it> <1378240470.79541.YahooMailNeo@web162905.mail.bf1.yahoo.com> Subject: Re: COPY TO and VACUUM MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [91.204.80.113] X-Mailer: Zimbra 8.0.2_GA_5569 (ZimbraWebClient - FF22 (Win)/8.0.2_GA_5569) Thread-Topic: COPY TO and VACUUM Thread-Index: avCr99Zb0ETYOTna2shp/M7ukzIcGw== X-Pg-Spam-Score: -4.3 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Hi kevin first of all thanks for your help. I did a mistake we are using postgres 8.= 3. I didn't expect COPY TO frees space but I was wondering Autovacumm delete d= ead rows as soon as possible, in fact my scenario is: - Delete all products record for a vendor - Reload all products record (from new listing) for the same vendor. Obviously we repeat this process continously and table space is growing rea= lly fast. Can you suggest me an approach for autovacuum within this scenario and, if = you want, suggest me an appropriate version of postgres that help solving m= y problem? Many thanks in advance again. BR, Roberto ----- Messaggio originale ----- Da: "Kevin Grittner" A: "Roberto Grandi" , pgsql-performance@post= gresql.org Inviato: Marted=C3=AC, 3 settembre 2013 22:34:30 Oggetto: Re: [PERFORM] COPY TO and VACUUM Roberto Grandi wrote: > I'm running Postgres 8.4 on Ubuntu 10.4 Linux server (64bit) > I have a big table tath contains product information: during the > day we perform a process that import new product continously with > statemtn COPY TO .. from files to this table. > > As result the table disk space is growing fast, it seems that > postgres is not able to free space for old rows. COPY TO would not free any space.=C2=A0 Is there some other activity you haven't yet mentioned? > Is it possible to run a specific autovacuum acivity or say to > postgres "every time I delete a row, delete it immedialty and > don't take care of other transactions" ? You can configure autovacuum to be more aggressive, or you could run VACUUM statements. > Do you have any suggestion for me? 8.4 is getting pretty old; there have been a lot of autovacuum improvements in recent years. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance