可以试一下pg_rewindpg_rewind -- synchronize a PostgreSQL data directory with another data directory that was forked from it但是分叉之后的数据就丢失了 被抹掉了
赞0踩0评论0
回答了问题2019-07-17
postgresql只读账号权限设置问题
-- 有权限
zhanyuanpeng@zhanyuanpeng-HP-ProBook-430-G5:~$ psql -U test
psql (10.5)
Type 'help' for help.
test=> \d
List of relations
Schema | Name | Type | Owner
--------+------+-------+--------------
public | test | table | zhanyuanpeng
(1 row)
test=> \d test
Table 'public.test'
Column | Type | Collation | Nullable | Default
--------+---------+-----------+----------+---------
id | integer | | |
test=> \q
# 移除权限
zhanyuanpeng@zhanyuanpeng-HP-ProBook-430-G5:~$ psql -d test
psql (10.5)
Type 'help' for help.
test=# revoke ALL ON SCHEMA public from public;
REVOKE
test=# \q
# 重新登录
zhanyuanpeng@zhanyuanpeng-HP-ProBook-430-G5:~$ psql -U test
psql (10.5)
Type 'help' for help.
test=> \d
Did not find any relations.
test=>
赞0踩0评论0
提交了问题2016-04-01
Postgresql 报错:worker took too long to start 导致CPU 的使用率达到96%