/*
* SQL Information Schema
- * as defined in ISO/IEC 9075-11:2008
+ * as defined in ISO/IEC 9075-11:2011
*
* Copyright (c) 2003-2012, PostgreSQL Global Development Group
*
/*
* 5.23
+ * CONSTRAINT_PERIOD_USAGE view
+ */
+
+-- feature not supported
+
+
+/*
+ * 5.24
* CONSTRAINT_TABLE_USAGE view
*/
GRANT SELECT ON constraint_table_usage TO PUBLIC;
--- 5.24 DATA_TYPE_PRIVILEGES view appears later.
+-- 5.25 DATA_TYPE_PRIVILEGES view appears later.
/*
- * 5.25
+ * 5.26
* DIRECT_SUPERTABLES view
*/
/*
- * 5.26
+ * 5.27
* DIRECT_SUPERTYPES view
*/
/*
- * 5.27
+ * 5.28
* DOMAIN_CONSTRAINTS view
*/
/*
- * 5.28
+ * 5.29
* DOMAINS view
*/
GRANT SELECT ON domains TO PUBLIC;
--- 5.29 ELEMENT_TYPES view appears later.
+-- 5.30 ELEMENT_TYPES view appears later.
/*
- * 5.30
+ * 5.31
* ENABLED_ROLES view
*/
/*
- * 5.31
+ * 5.32
* FIELDS view
*/
/*
- * 5.32
+ * 5.33
* KEY_COLUMN_USAGE view
*/
/*
- * 5.33
+ * 5.34
+ * KEY_PERIOD_USAGE view
+ */
+
+-- feature not supported
+
+
+/*
+ * 5.35
* METHOD_SPECIFICATION_PARAMETERS view
*/
/*
- * 5.34
+ * 5.36
* METHOD_SPECIFICATIONS view
*/
/*
- * 5.35
+ * 5.37
* PARAMETERS view
*/
/*
- * 5.36
+ * 5.38
+ * PERIODS view
+ */
+
+-- feature not supported
+
+
+/*
+ * 5.39
* REFERENCED_TYPES view
*/
/*
- * 5.37
+ * 5.40
* REFERENTIAL_CONSTRAINTS view
*/
/*
- * 5.38
+ * 5.41
* ROLE_COLUMN_GRANTS view
*/
GRANT SELECT ON role_column_grants TO PUBLIC;
--- 5.39 ROLE_ROUTINE_GRANTS view is based on 5.45 ROUTINE_PRIVILEGES and is defined there instead.
+-- 5.42 ROLE_ROUTINE_GRANTS view is based on 5.49 ROUTINE_PRIVILEGES and is defined there instead.
--- 5.40 ROLE_TABLE_GRANTS view is based on 5.60 TABLE_PRIVILEGES and is defined there instead.
+-- 5.43 ROLE_TABLE_GRANTS view is based on 5.62 TABLE_PRIVILEGES and is defined there instead.
/*
- * 5.41
+ * 5.44
* ROLE_TABLE_METHOD_GRANTS view
*/
--- 5.42 ROLE_USAGE_GRANTS view is based on 5.71 USAGE_PRIVILEGES and is defined there instead.
+-- 5.45 ROLE_USAGE_GRANTS view is based on 5.74 USAGE_PRIVILEGES and is defined there instead.
--- 5.43 ROLE_UDT_GRANTS view is based on 5.70 UDT_PRIVILEGES and is defined there instead.
+-- 5.46 ROLE_UDT_GRANTS view is based on 5.73 UDT_PRIVILEGES and is defined there instead.
/*
- * 5.44
+ * 5.47
* ROUTINE_COLUMN_USAGE view
*/
/*
- * 5.45
+ * 5.48
+ * ROUTINE_PERIOD_USAGE view
+ */
+
+-- feature not supported
+
+
+/*
+ * 5.49
* ROUTINE_PRIVILEGES view
*/
/*
- * 5.39
+ * 5.42
* ROLE_ROUTINE_GRANTS view
*/
/*
- * 5.46
+ * 5.50
* ROUTINE_ROUTINE_USAGE view
*/
/*
- * 5.47
+ * 5.51
* ROUTINE_SEQUENCE_USAGE view
*/
/*
- * 5.48
+ * 5.52
* ROUTINE_TABLE_USAGE view
*/
/*
- * 5.49
+ * 5.53
* ROUTINES view
*/
/*
- * 5.50
+ * 5.54
* SCHEMATA view
*/
/*
- * 5.51
+ * 5.55
* SEQUENCES view
*/
/*
- * 5.52
+ * 5.56
* SQL_FEATURES table
*/
/*
- * 5.53
+ * 5.57
* SQL_IMPLEMENTATION_INFO table
*/
/*
- * 5.54
* SQL_PACKAGES table
+ * removed in SQL:2011
*/
CREATE TABLE sql_packages (
/*
- * 5.55
+ * 5.58
* SQL_PARTS table
*/
/*
- * 5.56
+ * 5.59
* SQL_SIZING table
*/
/*
- * 5.57
* SQL_SIZING_PROFILES table
+ * removed in SQL:2011
*/
-- The data in this table are defined by various profiles of SQL.
/*
- * 5.58
+ * 5.60
* TABLE_CONSTRAINTS view
*/
/*
- * 5.59
+ * 5.61
* TABLE_METHOD_PRIVILEGES view
*/
/*
- * 5.60
+ * 5.62
* TABLE_PRIVILEGES view
*/
/*
- * 5.40
+ * 5.43
* ROLE_TABLE_GRANTS view
*/
/*
- * 5.61
+ * 5.63
* TABLES view
*/
/*
- * 5.62
+ * 5.64
* TRANSFORMS view
*/
/*
- * 5.63
+ * 5.65
* TRANSLATIONS view
*/
/*
- * 5.64
+ * 5.66
* TRIGGERED_UPDATE_COLUMNS view
*/
/*
- * 5.65
+ * 5.67
* TRIGGER_COLUMN_USAGE view
*/
/*
- * 5.66
+ * 5.68
+ * TRIGGER_PERIOD_USAGE view
+ */
+
+-- feature not supported
+
+
+/*
+ * 5.69
* TRIGGER_ROUTINE_USAGE view
*/
/*
- * 5.67
+ * 5.70
* TRIGGER_SEQUENCE_USAGE view
*/
/*
- * 5.68
+ * 5.71
* TRIGGER_TABLE_USAGE view
*/
/*
- * 5.69
+ * 5.72
* TRIGGERS view
*/
/*
- * 5.70
+ * 5.73
* UDT_PRIVILEGES view
*/
/*
- * 5.43
+ * 5.46
* ROLE_UDT_GRANTS view
*/
/*
- * 5.71
+ * 5.74
* USAGE_PRIVILEGES view
*/
/*
- * 5.42
+ * 5.45
* ROLE_USAGE_GRANTS view
*/
/*
- * 5.72
+ * 5.75
* USER_DEFINED_TYPES view
*/
/*
- * 5.73
+ * 5.76
* VIEW_COLUMN_USAGE
*/
/*
- * 5.74
+ * 5.77
+ * VIEW_PERIOD_USAGE
+ */
+
+-- feature not supported
+
+
+/*
+ * 5.78
* VIEW_ROUTINE_USAGE
*/
/*
- * 5.75
+ * 5.79
* VIEW_TABLE_USAGE
*/
/*
- * 5.76
+ * 5.80
* VIEWS view
*/
-- The following views have dependencies that force them to appear out of order.
/*
- * 5.24
+ * 5.25
* DATA_TYPE_PRIVILEGES view
*/
/*
- * 5.29
+ * 5.30
* ELEMENT_TYPES view
*/
-- SQL/MED views; these use section numbers from part 9 of the standard.
+-- (still SQL:2008; there is no SQL:2011 SQL/MED)
/* Base view for foreign table columns */
CREATE VIEW _pg_foreign_table_columns AS