Re: db grows and grows

From: "Bjoern Metzdorf" <bm(at)turtle-entertainment(dot)de>
To: "PostgreSQL general list" <pgsql-general(at)postgresql(dot)org>
Subject: Re: db grows and grows
Date: 2002-06-19 19:09:32
Message-ID: 001e01c217c4$d99bf220$0564a8c0@toolteam.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> > My script doesn't really lock anything, it must just be a natural
> > side-effect of the REINDEX command,
>
> According to
>
>
<http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/locking-tables.
html>
>
> CREATE INDEX gets a ShareLock. Which will block UPDATE, DELETE and
> INSERT. So, not _quite_ as bad as VACUUM FULL, but not something to
> do in the middle of a busy day.

During the REINDEX-run I see plenty "SELECT (waiting)" with ps. So I can
confirm this.

Greetings,
Bjoern

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2002-06-19 20:32:43 Re: db grows and grows
Previous Message Pam Wampler 2002-06-19 19:08:43 How to see version of pg_dump