Skip to content

Commit d512de2

Browse files
committed
exclude information_schema from results
1 parent 0b89c8a commit d512de2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/dump_stat/dump_stat--1.0.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ CREATE FUNCTION dump_statistic() RETURNS SETOF TEXT AS $$
213213
BEGIN
214214
for r in
215215
select * from pg_catalog.pg_statistic
216-
where get_namespace(starelid) != to_namespace('pg_catalog') loop
216+
where get_namespace(starelid) != to_namespace('pg_catalog')
217+
and get_namespace(starelid) != to_namespace('information_schema') loop
217218

218219
relname := to_schema_qualified_relname(r.starelid);
219220
attname := quote_literal(to_attname(relname, r.staattnum));

0 commit comments

Comments
 (0)