做postgresql流复制的时候,从库在使用pg_basebackup命令后启东时报错。
这是日志内容
[postgres@node2 pg_log]$ cat postgresql-2020-03-26_155810.log
LOG: database system was interrupted; last known up at 2020-03-26 15:45:46 CST
LOG: entering standby mode
LOG: trigger file found: /tmp/trigger_file0
LOG: invalid checkpoint record
FATAL: could not locate required checkpoint record
HINT: If you are not restoring from a backup, try removing the file "/psql/data/backup_label".
LOG: startup process (PID 10511) exited with exit code 1
LOG: aborting startup due to startup process failure
LOG: database system is shut down
这是recovery.confde内容
standby_mode = 'on'
primary_conninfo = 'user=stream_replication password=123 host=node1 port=5432 sslmode=disable sslcompression=1'
trigger_file = '/tmp/trigger_file0'
recovery_target_timeline = 'latest'
有没有大佬指点一下
感觉像数据库文件所在地址不对