Skip site navigation (1) Skip section navigation (2)

pgsql/src backend/utils/adt/acl.c include/cata ...

From: Bruce Momjian - CVS <momjian(at)hub(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src backend/utils/adt/acl.c include/cata ...
Date: 2001-06-12 15:58:35
Message-ID: 200106121558.f5CFwZ607497@hub.org (view raw or flat)
Thread:
Lists: pgsql-committers
CVSROOT:	/home/projects/pgsql/cvsroot
Module name:	pgsql
Changes by:	momjian(at)hub(dot)org	01/06/12 11:58:34

Modified files:
	src/backend/utils/adt: acl.c 
	src/include/catalog: pg_proc.h 
	src/include/utils: acl.h builtins.h 
	src/test/regress: parallel_schedule serial_schedule 

Log message:
	OK -- here's take #5.
	
	It "make"s and "make check"s clean against current cvs tip.
	
	There are now both Text and Name variants, and the regression test support
	is rolled into the patch. Note that to be complete wrt Name based variants,
	there are now 12 user visible versions of has_table_privilege:
	
	has_table_privilege(Text usename, Text relname, Text priv_type)
	has_table_privilege(Text usename, Name relname, Text priv_type)
	has_table_privilege(Name usename, Text relname, Text priv_type)
	has_table_privilege(Name usename, Name relname, Text priv_type)
	has_table_privilege(Text relname, Text priv_type) /* assumes current_user */
	has_table_privilege(Name relname, Text priv_type) /* assumes current_user */
	has_table_privilege(Text usename, Oid reloid, Text priv_type)
	has_table_privilege(Name usename, Oid reloid, Text priv_type)
	has_table_privilege(Oid reloid, Text priv_type)  /* assumes current_user */
	has_table_privilege(Oid usesysid, Text relname, Text priv_type)
	has_table_privilege(Oid usesysid, Name relname, Text priv_type)
	has_table_privilege(Oid usesysid, Oid reloid, Text priv_type)
	
	For the Text based inputs, a new internal function, get_Name is used
	(shamelessly copied from get_seq_name in sequence.c) to downcase if not
	quoted, or remove quotes if quoted, and truncate. I also added a few test
	cases for the downcasing, quote removal, and Name based variants to the
	regression test.
	
	Joe Conway


Responses

pgsql-committers by date

Next:From: Bruce Momjian - CVSDate: 2001-06-12 16:18:12
Subject: pgsql/doc TODO
Previous:From: Bruce Momjian - CVSDate: 2001-06-12 15:14:47
Subject: pgsql/src/interfaces/odbc gpps.c

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group