pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: SZUCS Gabor <surrano@mailbox.hu>
Cc: pgsql-sql@postgresql.org
Subject: Re: VACUUM FULL and ALTER TABLE do *nothing* in 7.3.2
Date: Tue, 6 May 2003 17:32:23 -0200 (GMT+2)
Message-ID: <Pine.LNX.4.44.0305061727030.22644-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <008801c313d6$ad89e390$0a03a8c0@fejleszt2>

On Tue, 6 May 2003, SZUCS Gabor wrote:

> Dear Achilleus,
> 
> Dunno, it's a multiuser environment. However, I'll try asking everyone to
> stop working for a minute...
> 
> ... oops, I just see that it finished about half an hour before (taking an
> amazing 76 minutes for ALTER TABLE to complete). About that time, I started
> and exited a client. Seems it solved the problem. Now "vacuum full analyze"
> finished in a couple of seconds.
> 
> Do you have any idea about an explanation? Does vacuum wait for the end of
> each and every transaction?

Just take a look at 
http://www.postgresql.org/docs/view.php?version=7.3&idoc=1&file=sql-lock.html

VACUUM FULL acquires a ACCESS EXCLUSIVE MODE.

That means that if a table is accessed in any way
the VACUUM FULL command will wait.

Open Cursors might be a reason.

> 
> G.
> --
> while (!asleep()) sheep++;
> 
> ---------------------------- cut here ------------------------------
> ----- Original Message -----
> From: "Achilleus Mantzios" <achill@matrix.gatewaynet.com>
> Sent: Tuesday, May 06, 2003 7:53 PM
> 
> 
> Maybe its a locking issue.
> 
> Did you quit any app using the DB?
> Did you commit/rollback all pending transactions (if any)?
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
> http://www.postgresql.org/docs/faqs/FAQ.html
> 

-- 
==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel:    +30-210-8981112
fax:    +30-210-8981877
email:  achill@matrix.gatewaynet.com
        mantzios@softlab.ece.ntua.gr




view thread (6+ messages)

Message-ID: <Pine.LNX.4.44.0305061727030.22644-100000@matrix.gatewaynet.com>
Permalink:  ../Pine.LNX.4.44.0305061727030.22644-100000@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0305061727030.22644-100000@matrix.gatewaynet.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-sql@postgresql.org
  Cc: achill@matrix.gatewaynet.com, surrano@mailbox.hu
  Subject: Re: VACUUM FULL and ALTER TABLE do *nothing* in 7.3.2
  In-Reply-To: <Pine.LNX.4.44.0305061727030.22644-100000@matrix.gatewaynet.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