逻辑备份

PostgreSQL多线程备份与恢复

♀尐吖头ヾ 提交于 2019-12-05 09:07:53
一、环境 CentOS7下8核的cpu,数据库的配置是initdb后默认的: $ cat /etc/redhat-release CentOS Linux release 7.0.1406 (Core) $ uname -a Linux zhaopin-2-203 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux $ cat /proc/cpuinfo | grep processor | wc -l 8 $ psql --version psql (PostgreSQL) 9.4.5 $ psql -U postgres -d test psql (9.4.5) Type "help" for help. test=# \dt+ List of relations Schema | Name | Type | Owner | Size | Description --------+-------+-------+----------+--------+------------- public | test1 | table | postgres | 275 MB | public | test2 | table | postgres | 275 MB |