PostgreSQL Dump based backup using pipe - Mailing list pgsql-admin

From girish R G peetle
Subject PostgreSQL Dump based backup using pipe
Date
Msg-id CAKKd066yz3GeEg9D_8KDPGz38YX=rzFAcGd5paUWaOtOqkNsPA@mail.gmail.com
Whole thread Raw
Responses Re: PostgreSQL Dump based backup using pipe  (Jan Lentfer <Jan.Lentfer@web.de>)
Re: PostgreSQL Dump based backup using pipe  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
Hi 
We were using named pipe to read dump data from 'pg_dump -Fc' (compressed format) on Windows. 
Restore was failing with 'corrupt dump data' error.  
Later found that pg_dump was performing 'illegal seek' on pipe to write the data, which was causing corrupt dump.

I've two questions.

1. With tar format ( -Ft ) I see that data is written in serial fashion so we are planning to  switched to this format. 
     Is it safe to use name pipe to read from 'pg_dump -Ft' (tar format) ?

2. On Linux also from strace output of 'pg_dump -Fc' (compressed dump) used with fifo file, I see 'illegal seek' performed on fifo file too. 
But restore doesn't have any issues. Is  it safe to use 'pg_dump -Fc' with output file as fifo on Linux ?

Thanks
Girish


pgsql-admin by date:

Previous
From: Albe Laurenz
Date:
Subject: Re: monitoring TPS and IOPS
Next
From: Jan Lentfer
Date:
Subject: Re: PostgreSQL Dump based backup using pipe