postgresql/src/include/utils
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
..
acl.h OK -- here's take #5. 2001-06-12 15:58:34 +00:00
array.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
ascii.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
bit.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
builtins.h OK -- here's take #5. 2001-06-12 15:58:34 +00:00
cash.h More functions updated to new fmgr style --- money, name, tid datatypes. 2000-08-03 16:35:08 +00:00
catcache.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
date.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
datetime.h Consolidate several near-identical uses of mktime() into a single 2001-05-03 22:53:07 +00:00
datum.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
dynahash.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
dynamic_loader.h Restructure the key include files per recent pghackers discussion: there 2001-02-10 02:31:31 +00:00
elog.h Preliminary code cleanup in elog(). Split out some code into utility 2001-06-08 21:16:49 +00:00
exc.h Restructure the key include files per recent pghackers discussion: there 2001-02-10 02:31:31 +00:00
excid.h Mark exception and assert global variables as DLLIMPORT, so that plpgsql 2001-03-23 18:26:01 +00:00
fcache.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
fmgrtab.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
formatting.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
geo_decls.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
guc.h reset all: command line and .conf options change defaults 2001-06-07 04:50:57 +00:00
hsearch.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
inet.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
int8.h This adds unary plus capability. No grammar changes, per Tom's request. 2001-06-07 00:09:32 +00:00
inval.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
logtape.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
lsyscache.h First cut at making indexscan cost estimates depend on correlation 2001-05-09 23:13:37 +00:00
memutils.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
nabstime.h Ensure that btree sort ordering functions and boolean comparison operators 2001-05-03 19:00:37 +00:00
numeric.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
palloc.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
pg_crc.h When using 'long long int' for int64 type, check to see if the compiler 2001-03-23 18:42:12 +00:00
pg_locale.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
pg_lzcompress.h Ye-old pgindent run. Same 4-space tabs. 2000-04-12 17:17:23 +00:00
portal.h Enhancement of SPI to get access to portals 2001-05-21 14:22:19 +00:00
ps_status.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
rel.h Clean up some minor problems exposed by further thought about Panon's bug 2001-06-01 02:41:36 +00:00
relcache.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
sets.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
syscache.h Clean up various to-do items associated with system indexes: 2001-06-12 05:55:50 +00:00
temprel.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
timestamp.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
tqual.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
tuplesort.h Tweak sorting so that nulls appear at the front of a descending sort 2001-06-02 19:01:53 +00:00
tuplestore.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
varbit.h Make bit and bit varying types reject too long input. (They already tried 2001-05-22 16:37:17 +00:00