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 17:58:34 +02:00
|
|
|
# $Header: /cvsroot/pgsql/src/test/regress/serial_schedule,v 1.5 2001/06/12 15:58:34 momjian Exp $
|
2000-10-01 23:19:09 +02:00
|
|
|
# This should probably be in an order similar to parallel_schedule.
|
2000-09-29 19:17:41 +02:00
|
|
|
test: boolean
|
|
|
|
test: char
|
|
|
|
test: name
|
|
|
|
test: varchar
|
|
|
|
test: text
|
|
|
|
test: int2
|
|
|
|
test: int4
|
|
|
|
test: int8
|
|
|
|
test: oid
|
|
|
|
test: float4
|
|
|
|
test: float8
|
2000-11-22 14:37:44 +01:00
|
|
|
test: bit
|
2000-10-01 23:19:09 +02:00
|
|
|
test: numeric
|
|
|
|
test: strings
|
2000-09-29 19:17:41 +02:00
|
|
|
test: numerology
|
|
|
|
test: point
|
|
|
|
test: lseg
|
|
|
|
test: box
|
|
|
|
test: path
|
|
|
|
test: polygon
|
|
|
|
test: circle
|
|
|
|
test: date
|
|
|
|
test: time
|
|
|
|
test: timestamp
|
|
|
|
test: interval
|
|
|
|
test: abstime
|
|
|
|
test: reltime
|
|
|
|
test: tinterval
|
|
|
|
test: inet
|
|
|
|
test: comments
|
|
|
|
test: oidjoins
|
|
|
|
test: type_sanity
|
|
|
|
test: opr_sanity
|
2000-10-01 23:19:09 +02:00
|
|
|
test: geometry
|
|
|
|
test: horology
|
2000-09-29 19:17:41 +02:00
|
|
|
test: create_function_1
|
|
|
|
test: create_type
|
|
|
|
test: create_table
|
|
|
|
test: create_function_2
|
2000-10-01 23:19:09 +02:00
|
|
|
test: copy
|
2000-09-29 19:17:41 +02:00
|
|
|
test: constraints
|
|
|
|
test: triggers
|
|
|
|
test: create_misc
|
|
|
|
test: create_aggregate
|
|
|
|
test: create_operator
|
|
|
|
test: create_index
|
2000-10-01 23:19:09 +02:00
|
|
|
test: inherit
|
|
|
|
test: create_view
|
2000-09-29 19:17:41 +02:00
|
|
|
test: sanity_check
|
|
|
|
test: errors
|
|
|
|
test: select
|
|
|
|
test: select_into
|
|
|
|
test: select_distinct
|
|
|
|
test: select_distinct_on
|
|
|
|
test: select_implicit
|
|
|
|
test: select_having
|
|
|
|
test: subselect
|
|
|
|
test: union
|
|
|
|
test: case
|
|
|
|
test: join
|
|
|
|
test: aggregates
|
|
|
|
test: transactions
|
|
|
|
ignore: random
|
|
|
|
test: random
|
|
|
|
test: portals
|
|
|
|
test: arrays
|
|
|
|
test: btree_index
|
|
|
|
test: hash_index
|
2001-05-27 11:59:30 +02:00
|
|
|
test: privileges
|
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 17:58:34 +02:00
|
|
|
test: has_table_priv
|
2000-10-01 23:19:09 +02:00
|
|
|
test: misc
|
2000-09-29 19:17:41 +02:00
|
|
|
test: select_views
|
|
|
|
test: alter_table
|
|
|
|
test: portals_p2
|
|
|
|
test: rules
|
2000-10-01 23:19:09 +02:00
|
|
|
test: foreign_key
|
2000-09-29 19:17:41 +02:00
|
|
|
test: limit
|
|
|
|
test: plpgsql
|
|
|
|
test: temp
|