pgsql-server: Fix thinko in recent patch to change temp-table

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server: Fix thinko in recent patch to change temp-table
Date: 2004-05-28 16:17:16
Message-ID: 20040528161716.365F7D1B1CF@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix thinko in recent patch to change temp-table permissions behavior:
this is an aclmask function and does not have the same return convention
as aclcheck functions. Also adjust the behavior so that users without
CREATE TEMP permission still have USAGE permission on their session's
temp schema. This allows privileged code to create a temp table and
make it accessible to code that's not got the same privilege. (Since
the default permissions on a table are no-access, an explicit grant on
the table will still be needed; but I see no reason that the temp schema
itself should prohibit such access.)

Modified Files:
--------------
pgsql-server/src/backend/catalog:
aclchk.c (r1.100 -> r1.101)
(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/catalog/aclchk.c.diff?r1=1.100&r2=1.101)
namespace.c (r1.65 -> r1.66)
(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/catalog/namespace.c.diff?r1=1.65&r2=1.66)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2004-05-28 16:37:13 pgsql-server: Fix minor error in comment.
Previous Message Teodor Sigaev 2004-05-28 15:36:52 pgsql-server: Stat function now can show statistics per weight of