Hi Hackers, 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" Thanks, Satya
pg_receivewal_init_fix.patch
Description: Binary data