Re: PostgreSQL Dump based backup using pipe

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: girish R G peetle <giri(dot)anamika0(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: PostgreSQL Dump based backup using pipe
Date: 2015-05-27 14:24:44
Message-ID: 31650.1432736684@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

girish R G peetle <giri(dot)anamika0(at)gmail(dot)com> writes:
> 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.

That should work. What PG version are you using exactly, and can we see a
full example of what you were trying to do?

There are unsupported cases --- I recall in particular that you can't do
a parallel restore from a pipe --- but you should not be getting "corrupt
file" errors.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message girish R G peetle 2015-05-27 16:25:14 Re: PostgreSQL Dump based backup using pipe
Previous Message Jan Lentfer 2015-05-27 11:32:37 Re: PostgreSQL Dump based backup using pipe