Re: Vaccuum allows read access?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Alfred Perlstein <bright(at)wintelcom(dot)net>, PostgreSQL HACKERS <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Vaccuum allows read access?
Date: 2000-07-21 19:15:27
Message-ID: 23703.964206927@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> In the current sources, analyze allows read-access. I don't think
> vacuum allows any other access because the rows are moving in the file.

VACUUM *must* have exclusive lock.

ANALYZE actually is only a reader (AccessShareLock) and does not lock
out either reading or writing in current sources.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 2000-07-22 01:43:37 Re: Geometry test broken
Previous Message Tom Lane 2000-07-21 18:59:26 Re: About these IPC parameters