diff options
author | Magnus Hagander <magnus@hagander.net> | 2011-11-03 15:37:08 +0100 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2011-11-03 15:37:08 +0100 |
commit | e7cc8437bbff99cbc7f07f852f5169ba1356a414 (patch) | |
tree | 170181f3013893b4d71c9423501147928d5f261b /src/include/postgres.h | |
parent | 4429f6a9e3e12bb4af6e3677fbc78cd80f160252 (diff) | |
download | postgresql-e7cc8437bbff99cbc7f07f852f5169ba1356a414.tar.gz postgresql-e7cc8437bbff99cbc7f07f852f5169ba1356a414.zip |
Pre-pad WAL files when streaming transaction log
Instead of filling files as they appear, pre-pad the
WAL files received when streaming xlog the same way
that the server does. Data is streamed into a .partial
file which is then renamed()d into palce when it's complete,
but it will always be 16MB.
This also means that the starting position for pg_receivexlog
is now simply right after the last complete segment, and we
never need to deal with partial segments there.
Patch by me, review by Fujii Masao
Diffstat (limited to 'src/include/postgres.h')
0 files changed, 0 insertions, 0 deletions