CLUSTER, REINDEX, VACUUM in "read only" transaction?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: CLUSTER, REINDEX, VACUUM in "read only" transaction?
Date: 2008-10-10 13:41:39
Message-ID: 25968.1223646099@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

So I was looking for other omissions in utility.c, and I noticed that
check_xact_readonly() doesn't reject CLUSTER, REINDEX, or VACUUM.
Now the notion of "read only" that we're trying to enforce is pretty
weak (I think it's effectively "no writes to non-temp tables").
But I can't see that CLUSTER is a read-only operation even under the
weakest definitions, and I'm not seeing the rationale for REINDEX or
VACUUM here either.

Comments?

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2008-10-10 13:46:51 Re: How is random_page_cost=4 ok?
Previous Message Gregory Stark 2008-10-10 13:39:05 Re: How is random_page_cost=4 ok?