From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Marcin Kowalski <kowalski(at)datrix(dot)co(dot)za>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Re: [SQL] Re: pg_dump potential bug -UNIQUE INDEX on PG_SHADOW Dont!! HELP |
Date: | 2001-04-01 00:58:17 |
Message-ID: | 200104010058.TAA21172@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-bugs pgsql-general pgsql-hackers pgsql-sql |
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > First, here is a patch which will prevent this from happening in the
> > future. Do people want this held for 7.2 or applied now? It disables
> > the creation of user indexes on system tables.
>
> > + if (heapRelationName && !allow_system_table_mods &&
> > + IsSystemRelationName(heapRelationName) && IsNormalProcessingMode())
> > + {
> > + elog(ERROR, "You can not create indexes on system tables: '%s'",
> > + heapRelationName);
> > + }
> > +
>
> I think it would be a real good idea to put in this safeguard, but
> I don't much like that error message. How about
>
> elog(ERROR, "User-defined indexes on system catalogs are not supported");
Change made to patch.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Yasuo Ohgaki | 2001-04-01 09:05:24 | libpq bug? (I guess not) |
Previous Message | Tom Lane | 2001-04-01 00:53:39 | Re: Re: [SQL] Re: pg_dump potential bug -UNIQUE INDEX on PG_SHADOW Dont!! HELP |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-04-01 01:09:03 | Re: segmentation fault in psql |
Previous Message | Tom Lane | 2001-04-01 00:53:39 | Re: Re: [SQL] Re: pg_dump potential bug -UNIQUE INDEX on PG_SHADOW Dont!! HELP |
From | Date | Subject | |
---|---|---|---|
Next Message | Jacob | 2001-04-01 02:11:39 | SELECT MAX question |
Previous Message | Tom Lane | 2001-04-01 00:57:59 | Re: dynamic field names in a function. |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-04-01 01:02:25 | Re: Re: Changing the default value of an inherited column |
Previous Message | Tom Lane | 2001-04-01 00:53:39 | Re: Re: [SQL] Re: pg_dump potential bug -UNIQUE INDEX on PG_SHADOW Dont!! HELP |
From | Date | Subject | |
---|---|---|---|
Next Message | Stef Telford | 2001-04-01 07:50:20 | Trigger Function and Html Output |
Previous Message | Tom Lane | 2001-04-01 00:53:39 | Re: Re: [SQL] Re: pg_dump potential bug -UNIQUE INDEX on PG_SHADOW Dont!! HELP |