| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp> |
| Cc: | pgsql-patches(at)postgreSQL(dot)org |
| Subject: | Re: Improving REINDEX for system indexes (long) |
| Date: | 2003-09-23 00:31:29 |
| Message-ID: | 28463.1064277089@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers pgsql-hackers pgsql-patches |
Here is the proposed patch. This fixes the problems that prevented the
relcache from coping with relfilenode changes for nailed-in-cache
indexes. Accordingly, REINDEX is now crash-safe and transaction-safe
for all cases except reindexing shared system catalogs. That case is
permitted only in a standalone backend (!IsUnderPostmaster). We no
longer require -O to reindex system tables, and since -P now suppresses
only reads not writes of system indexes, it is safe to allow from the
client side. Upshot: reindexing system catalogs can be done without a
standalone backend for all cases except shared catalogs.
regards, tom lane
| Attachment | Content-Type | Size |
|---|---|---|
| unknown_filename | text/plain | 73.9 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hiroshi Inoue | 2003-09-23 01:51:09 | pgsql-server/src/backend catalog/index.c comma ... |
| Previous Message | Teodor Sigaev | 2003-09-22 13:32:34 | pgsql-server/contrib/tsearch2 ts_cfg.c expecte ... |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Greg Stark | 2003-09-23 01:41:14 | Re: More Prelimiary DBT-2 Test Results with PostgreSQL 7.3.4 |
| Previous Message | Nigel J. Andrews | 2003-09-22 22:59:38 | Re: old pgindent change |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hiroshi Inoue | 2003-09-23 02:44:27 | Re: Improving REINDEX for system indexes (long) |
| Previous Message | Mike Mascari | 2003-09-23 00:19:12 | Re: contrib mode - pgenv |