Discussion:
[ADMIN] re-create information_schema
(too old to reply)
Ray Stell
2012-02-29 20:55:13 UTC
Permalink
on rebuilding the information_schema:
http://www.postgresql.org/docs/9.1/static/release-9-1-2.html
...
Since the view definition is installed by initdb, merely upgrading will
not fix the problem. If you need to fix this in an existing installation,
you can (as a superuser) drop the information_schema schema then re-create
it by sourcing SHAREDIR/information_schema.sql. (Run pg_config --sharedir
if you're uncertain where SHAREDIR is.) This must be repeated in each
database to be fixed.


The right thing to do here is drop cascade, correct? No harm done with
that?

doodah=# drop schema information_schema;
ERROR: cannot drop schema information_schema because other objects depend on it
DETAIL: table information_schema.sql_sizing_profiles depends on schema information_schema
table information_schema.sql_sizing depends on schema information_schema
...
view information_schema.check_constraint_routine_usage column constraint_name depends on type information_schema.sql_identifier
and 138 other objects (see server log for list)
HINT: Use DROP ... CASCADE to drop the dependent objects too.

Thanks.
--
Sent via pgsql-admin mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Ray Stell
2012-02-29 21:25:02 UTC
Permalink
Post by Ray Stell
http://www.postgresql.org/docs/9.1/static/release-9-1-2.html
This must be repeated in each
database to be fixed.
including postgres, template0, and template1?
--
Sent via pgsql-admin mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Peter Eisentraut
2012-03-03 18:27:19 UTC
Permalink
Post by Ray Stell
Post by Ray Stell
http://www.postgresql.org/docs/9.1/static/release-9-1-2.html
This must be repeated in each
database to be fixed.
including postgres, template0, and template1?
Yes, if you want those databases to be fixed.
--
Sent via pgsql-admin mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Ray Stell
2012-03-03 22:28:04 UTC
Permalink
Post by Peter Eisentraut
Post by Ray Stell
Post by Ray Stell
http://www.postgresql.org/docs/9.1/static/release-9-1-2.html
This must be repeated in each
database to be fixed.
including postgres, template0, and template1?
Yes, if you want those databases to be fixed.
A trick with template0, or so it seems:

template1=# select datname, datallowconn from pg_database;
datname | datallowconn
-----------+--------------
template1 | t
template0 | f
postgres | t
rd | t
(4 rows)
--
Sent via pgsql-admin mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Loading...