Re: [HACKERS] Cannot insert into temp tables

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Cannot insert into temp tables
Date: 1999-09-27 16:43:09
Message-ID: 199909271643.MAA02295@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Bruce Momjian wrote:
> ...
> >OK, you have good points. usecatupd should not be set by default.
> >Making changes to the system tables can mess things up for everyone.
> >Initdb will give the postgres superuser permissions, but now createuser
> >and the SQL command CREATE USER will not give this permission. Also, I
> >have fixed the code so temp tables, which are acutally named pg_temp,
> >can be updated by normal users without usecatupd permissions.
> >
> >Attached is a patch. I will apply it to the current tree.
>
> Bruce, this change has some other implications. I tested
> the effect of the patch by altering the rights of my own account (setting
> usecatupd to false). I cannot now create other users: although usesuper is
> true, the attempt to update pg_shadow with the new user's row fails:

OK, I have committed a fix for this. I now give update catalog rights
to anyone who has createdb or super-user rights. This is in the current
tree only. Let me know if you see any additional problems.

--
Bruce Momjian | http://www.op.net/~candle
maillist(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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-09-27 16:51:42 Re: [HACKERS] _text problem in union
Previous Message Leon 1999-09-27 16:23:14 Re: [HACKERS] Profiling?]