I haven't seen it mentioned, but I could have missed it. It seems like this
kind of thing must be known and probably fixed already? I'm actually still
using 7.4 beta 5. IIRC that was the last beta before the release and there
were no changes for 7.4.
db=> select table_name from information_sch ema.tables;
ERROR: unrecognized privilege type: "RERERENCES "
db=> \d information_sch ema.tables
View "information_sc hema.tables"
Column | Type | Modifiers
------------------------------+-----------------------------------+-----------
table_catalog | information_sch ema.sql_identif ier |
table_schema | information_sch ema.sql_identif ier |
table_name | information_sch ema.sql_identif ier |
table_type | information_sch ema.character_d ata |
self_referencin g_column_name | information_sch ema.sql_identif ier |
reference_gener ation | information_sch ema.character_d ata |
user_defined_ty pe_catalog | information_sch ema.sql_identif ier |
user_defined_ty pe_schema | information_sch ema.sql_identif ier |
user_defined_na me | information_sch ema.sql_identif ier |
View definition:
SELECT current_databas e()::character varying::inform ation_schema.sq l_identifier AS table_catalog, nc.nspname::cha racter varying::inform ation_schema.sq l_identifier AS table_schema, c.relname::char acter varying::inform ation_schema.sq l_identifier AS table_name,
CASE
WHEN nc.nspname ~~ like_escape('pg !_temp!_%'::tex t, '!'::text) THEN 'LOCAL TEMPORARY'::tex t
WHEN c.relkind = 'r'::"char" THEN 'BASE TABLE'::text
WHEN c.relkind = 'v'::"char" THEN 'VIEW'::text
ELSE NULL::text
END::informatio n_schema.charac ter_data AS table_type, NULL::informati on_schema.sql_i dentifier::info rmation_schema. sql_identifier AS self_referencin g_column_name, NULL::informati on_schema.chara cter_data::info rmation_schema. character_data AS reference_gener ation, NULL::informati on_schema.sql_i dentifier::info rmation_schema. sql_identifier AS user_defined_ty pe_catalog, NULL::informati on_schema.sql_i dentifier::info rmation_schema. sql_identifier AS user_defined_ty pe_schema, NULL::informati on_schema.sql_i dentifier::info rmation_schema. sql_identifier AS user_defined_na me
FROM pg_namespace nc, pg_class c, pg_user u
WHERE c.relnamespace = nc.oid AND u.usesysid = c.relowner AND (c.relkind = 'r'::"char" OR c.relkind = 'v'::"char") AND (u.usename = "current_user"( ) OR has_table_privi lege(c.oid, 'SELECT'::text) OR has_table_privi lege(c.oid, 'INSERT'::text) OR has_table_privi lege(c.oid, 'UPDATE'::text) OR has_table_privi lege(c.oid, 'DELETE'::text) OR has_table_privi lege(c.oid, 'RULE'::text) OR has_table_privi lege(c.oid, 'RERERENCES'::t ext) OR has_table_privi lege(c.oid, 'TRIGGER'::text ));
Note the "RERERENCES " in the last line of the view definition.
--
greg
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to
ma*******@postg resql.org so that your
message can get through to the mailing list cleanly