首页 > 代码库 > How vacuum template0
How vacuum template0
[pg@h1 ~]$ vacuumdb --freeze template0 vacuumdb: could not connect to database template0: FATAL: database "template0" is not currently accepting connections [pg@h1 ~]$ psql template0 psql: FATAL: database "template0" is not currently accepting connections [pg@h1 ~]$ PGOPTIONS='-c gp_session_role=utility' psql template1 psql (8.2.15) Type "help" for help. template1=# set allow_system_table_mods='DML'; SET template1=# update pg_database set datallowconn='t' where datname='template0'; UPDATE 1 template1=# \c template0 You are now connected to database "template0" as user "pg". template0=# vacuum freeze ; VACUUM template0=# \q [pg@h1 ~]$ PGOPTIONS='-c gp_session_role=utility' psql template1 psql (8.2.15) Type "help" for help. template1=# set allow_system_table_mods='DML'; SET template1=# update pg_database set datallowconn='f' where datname='template0'; UPDATE 1
-EOF-
How vacuum template0
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。