Commit 725524bd authored by Bruce Momjian's avatar Bruce Momjian

Please find attached a small patch against current cvs head, so that

'information_schema' is considered a system schema by various
pg_stat*_*_{tables,sequences} views.

Fabien COELHO
parent 0a17fd72
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* Copyright 1996-2003, PostgreSQL Global Development Group * Copyright 1996-2003, PostgreSQL Global Development Group
* *
* $PostgreSQL: pgsql/src/backend/catalog/system_views.sql,v 1.5 2004/01/14 03:46:28 tgl Exp $ * $PostgreSQL: pgsql/src/backend/catalog/system_views.sql,v 1.6 2004/04/26 15:24:41 momjian Exp $
*/ */
CREATE VIEW pg_user AS CREATE VIEW pg_user AS
...@@ -118,11 +118,11 @@ CREATE VIEW pg_stat_all_tables AS ...@@ -118,11 +118,11 @@ CREATE VIEW pg_stat_all_tables AS
CREATE VIEW pg_stat_sys_tables AS CREATE VIEW pg_stat_sys_tables AS
SELECT * FROM pg_stat_all_tables SELECT * FROM pg_stat_all_tables
WHERE schemaname IN ('pg_catalog', 'pg_toast'); WHERE schemaname IN ('pg_catalog', 'pg_toast', 'information_schema');
CREATE VIEW pg_stat_user_tables AS CREATE VIEW pg_stat_user_tables AS
SELECT * FROM pg_stat_all_tables SELECT * FROM pg_stat_all_tables
WHERE schemaname NOT IN ('pg_catalog', 'pg_toast'); WHERE schemaname NOT IN ('pg_catalog', 'pg_toast', 'information_schema');
CREATE VIEW pg_statio_all_tables AS CREATE VIEW pg_statio_all_tables AS
SELECT SELECT
...@@ -151,11 +151,11 @@ CREATE VIEW pg_statio_all_tables AS ...@@ -151,11 +151,11 @@ CREATE VIEW pg_statio_all_tables AS
CREATE VIEW pg_statio_sys_tables AS CREATE VIEW pg_statio_sys_tables AS
SELECT * FROM pg_statio_all_tables SELECT * FROM pg_statio_all_tables
WHERE schemaname IN ('pg_catalog', 'pg_toast'); WHERE schemaname IN ('pg_catalog', 'pg_toast', 'information_schema');
CREATE VIEW pg_statio_user_tables AS CREATE VIEW pg_statio_user_tables AS
SELECT * FROM pg_statio_all_tables SELECT * FROM pg_statio_all_tables
WHERE schemaname NOT IN ('pg_catalog', 'pg_toast'); WHERE schemaname NOT IN ('pg_catalog', 'pg_toast', 'information_schema');
CREATE VIEW pg_stat_all_indexes AS CREATE VIEW pg_stat_all_indexes AS
SELECT SELECT
...@@ -175,11 +175,11 @@ CREATE VIEW pg_stat_all_indexes AS ...@@ -175,11 +175,11 @@ CREATE VIEW pg_stat_all_indexes AS
CREATE VIEW pg_stat_sys_indexes AS CREATE VIEW pg_stat_sys_indexes AS
SELECT * FROM pg_stat_all_indexes SELECT * FROM pg_stat_all_indexes
WHERE schemaname IN ('pg_catalog', 'pg_toast'); WHERE schemaname IN ('pg_catalog', 'pg_toast', 'information_schema');
CREATE VIEW pg_stat_user_indexes AS CREATE VIEW pg_stat_user_indexes AS
SELECT * FROM pg_stat_all_indexes SELECT * FROM pg_stat_all_indexes
WHERE schemaname NOT IN ('pg_catalog', 'pg_toast'); WHERE schemaname NOT IN ('pg_catalog', 'pg_toast', 'information_schema');
CREATE VIEW pg_statio_all_indexes AS CREATE VIEW pg_statio_all_indexes AS
SELECT SELECT
...@@ -199,11 +199,11 @@ CREATE VIEW pg_statio_all_indexes AS ...@@ -199,11 +199,11 @@ CREATE VIEW pg_statio_all_indexes AS
CREATE VIEW pg_statio_sys_indexes AS CREATE VIEW pg_statio_sys_indexes AS
SELECT * FROM pg_statio_all_indexes SELECT * FROM pg_statio_all_indexes
WHERE schemaname IN ('pg_catalog', 'pg_toast'); WHERE schemaname IN ('pg_catalog', 'pg_toast', 'information_schema');
CREATE VIEW pg_statio_user_indexes AS CREATE VIEW pg_statio_user_indexes AS
SELECT * FROM pg_statio_all_indexes SELECT * FROM pg_statio_all_indexes
WHERE schemaname NOT IN ('pg_catalog', 'pg_toast'); WHERE schemaname NOT IN ('pg_catalog', 'pg_toast', 'information_schema');
CREATE VIEW pg_statio_all_sequences AS CREATE VIEW pg_statio_all_sequences AS
SELECT SELECT
...@@ -219,11 +219,11 @@ CREATE VIEW pg_statio_all_sequences AS ...@@ -219,11 +219,11 @@ CREATE VIEW pg_statio_all_sequences AS
CREATE VIEW pg_statio_sys_sequences AS CREATE VIEW pg_statio_sys_sequences AS
SELECT * FROM pg_statio_all_sequences SELECT * FROM pg_statio_all_sequences
WHERE schemaname IN ('pg_catalog', 'pg_toast'); WHERE schemaname IN ('pg_catalog', 'pg_toast', 'information_schema');
CREATE VIEW pg_statio_user_sequences AS CREATE VIEW pg_statio_user_sequences AS
SELECT * FROM pg_statio_all_sequences SELECT * FROM pg_statio_all_sequences
WHERE schemaname NOT IN ('pg_catalog', 'pg_toast'); WHERE schemaname NOT IN ('pg_catalog', 'pg_toast', 'information_schema');
CREATE VIEW pg_stat_activity AS CREATE VIEW pg_stat_activity AS
SELECT SELECT
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment