pg_receivewal fail to streams when the partial file to write is not fully initialized present in the wal receiver directory - Mailing list pgsql-hackers
From
SATYANARAYANA NARLAPURAM
Subject
pg_receivewal fail to streams when the partial file to write is not fully initialized present in the wal receiver directory
I noticed that pg_receivewal fails to stream when the partial file to write is not fully initialized and fails with the error message something like below. This requires an extra step of deleting the partial file that is not fully initialized before starting the pg_receivewal. Attaching a simple patch that creates a temp file, fully initialize it and rename the file to the desired wal segment name.
"error: write-ahead log file "000000010000000000000003.partial" has 8396800 bytes, should be 0 or 16777216"