0

I am using Postgresql 9.6 and getting an error while connecting psql. Error- ./psql

psql.bin: FATAL: the database system is starting up. What could be the issue?

In the log it says

2021年02月18日 13:23:31.311 IST [85845]: [-] db=,user= LOG: started streaming WAL from primary at 3FC/91000000 on timeline 2
2021年02月18日 13:23:31.312 IST [85845]: [-] db=,user= FATAL: could not receive data from WAL stream: ERROR: requested WAL segment 00000002000003FC00000091 has already been removed
Laurenz Albe
62.1k4 gold badges57 silver badges93 bronze badges
asked Feb 18, 2021 at 5:54

1 Answer 1

1

Your standby server has been down long enough that the primary doesn't have the required transaction log information any more. In addition, the standby was not shut down cleanly.

You will have to remove the standby server and rebuild it from scratch, unless you have a WAL archive that still contains the required segments.

Consider using replication slots next time to avoid that problem.

answered Feb 18, 2021 at 6:55
2
  • In the log it says - 2021年02月18日 13:23:31.311 IST [85845]: [-] db=,user= LOG: started streaming WAL from primary at 3FC/91000000 on timeline 2 2021年02月18日 13:23:31.312 IST [85845]: [-] db=,user= FATAL: could not receive data from WAL stream: ERROR: requested WAL segment 00000002000003FC00000091 has already been removed Commented Feb 18, 2021 at 7:55
  • And the hot_standby is on in slave postgres.conf Commented Feb 18, 2021 at 7:56

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.