postgresql/src/backend
Bruce Momjian 58c909bb8d 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
2001-06-12 15:58:34 +00:00
..
access Clean up various to-do items associated with system indexes: 2001-06-12 05:55:50 +00:00
bootstrap Mark many strings in backend not covered by elog for translation. Also, 2001-06-03 14:53:56 +00:00
catalog Clean up various to-do items associated with system indexes: 2001-06-12 05:55:50 +00:00
commands Clean up various to-do items associated with system indexes: 2001-06-12 05:55:50 +00:00
executor Make planner compute the number of hash buckets the same way that 2001-06-11 00:17:08 +00:00
lib dllist.c is included in the frontend libpq interface via symlink. 2001-06-02 15:16:55 +00:00
libpq Remove error report from pq_endmessage when pq_putmessage fails. The 2001-04-16 01:46:57 +00:00
main Mark many strings in backend not covered by elog for translation. Also, 2001-06-03 14:53:56 +00:00
nodes Allow GRANT/REVOKE to/from more than one user per invocation. Command tag 2001-06-09 23:21:55 +00:00
optimizer Make planner compute the number of hash buckets the same way that 2001-06-11 00:17:08 +00:00
parser Allow GRANT/REVOKE to/from more than one user per invocation. Command tag 2001-06-09 23:21:55 +00:00
po Mark many strings in backend not covered by elog for translation. Also, 2001-06-03 14:53:56 +00:00
port Fix broken $Header$ declaration. 2001-05-30 18:32:29 +00:00
postmaster Move temporary files into 'pg_tempfiles' subdirectory of each database 2001-06-11 04:12:29 +00:00
regex pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
rewrite Permission checking wasn't quite right for insert/update/delete rules, 2001-05-03 21:16:48 +00:00
storage Clean up various to-do items associated with system indexes: 2001-06-12 05:55:50 +00:00
tcop Allow GRANT/REVOKE to/from more than one user per invocation. Command tag 2001-06-09 23:21:55 +00:00
tioga Remove dashes in comments that don't need them, rewrap with pgindent. 2001-03-22 06:16:21 +00:00
utils OK -- here's take #5. 2001-06-12 15:58:34 +00:00
Makefile Native Language Support (NLS) 2001-06-02 18:25:18 +00:00