Re: Cancelled Vacuum Leaving Tables Locked?

From: "Gurupartap Davis" <partap(at)yahoo(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Cancelled Vacuum Leaving Tables Locked?
Date: 2001-11-29 23:28:46
Message-ID: 0c5401c1792d$97d62e90$0f00a8c0@marlows
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I think I've seen this, or something similar...when I was doing a CREATE
INDEX on a huge table and cancelled it, but there was still a postmaster
process running on the server doing CREATE, and the table was still locked.
I did everything short of 'kill -9' to the process, and it ignored me....I
checked back several hours later and it was gone...probably finished with
the CREATE and exited.

Incidentally, can someone tell me what happens when you do a CREATE INDEX or
a VACUUM ANALYZE? It seems like it should be a O(n) type operation, yet it
seems to take an excessively increasing long time as table size grows, like
O(n^2) or something...

pgsql-general(at)postgresql(dot)org <pgsql-general(at)postgresql(dot)org>
----- Original Message -----
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Orion Henry" <orion(at)trustcommerce(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Sent: Wednesday, November 28, 2001 10:09 AM
Subject: Re: [GENERAL] Cancelled Vacuum Leaving Tables Locked?

> Orion Henry <orion(at)trustcommerce(dot)com> writes:
> > I am running postgresql-7.1.3-1PGDG on RedHat Linux 6.2
> > If I start a "VACUUM ANALYZE" and later hit Ctrl-C to
> > stop it, the table that was in mid-vacuum seems to
> > say locked.
>
> ?? I can't replicate this, and I don't recall ever hearing a similar
> complaint from anyone else. There's got to be some additional factor
> in your situation.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2001-11-30 00:10:12 Re: Rserv / Replication
Previous Message Dado Feigenblatt 2001-11-29 22:33:27 Re: ident authorization (was backup: pg_dumpall and full backups in general)