pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@ymail.com>
To: Roberto Grandi <roberto.grandi@trovaprezzi.it>
To: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: COPY TO and VACUUM
Date: Tue, 3 Sep 2013 13:34:30 -0700 (PDT)
Message-ID: <1378240470.79541.YahooMailNeo@web162905.mail.bf1.yahoo.com> (raw)
In-Reply-To: <441706222.701556.1378224973704.JavaMail.root@trovaprezzi.it>
References: <535715181.700956.1378223895627.JavaMail.root@trovaprezzi.it>
	<441706222.701556.1378224973704.JavaMail.root@trovaprezzi.it>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Roberto Grandi <roberto.grandi@trovaprezzi.it> 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.  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


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (11+ messages)  latest in thread

Message-ID: <1378240470.79541.YahooMailNeo@web162905.mail.bf1.yahoo.com>
Permalink:  ../1378240470.79541.YahooMailNeo@web162905.mail.bf1.yahoo.com/
Also on:    postgresql.org/message-id/1378240470.79541.YahooMailNeo@web162905.mail.bf1.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: kgrittn@ymail.com, roberto.grandi@trovaprezzi.it
  Subject: Re: COPY TO and VACUUM
  In-Reply-To: <1378240470.79541.YahooMailNeo@web162905.mail.bf1.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox