Re: proposal: pg_restore --convert-to-text

From: Euler Taveira <euler(at)timbira(dot)com(dot)br>
To: Andreas Karlsson <andreas(at)proxel(dot)se>
Cc: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: proposal: pg_restore --convert-to-text
Date: 2019-02-18 22:17:45
Message-ID: CAHE3wgjzGpkVeNaVi-Dq46hMqct1OOz2kLoYGijqPMX9uwEq+A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Em qui, 14 de fev de 2019 às 22:41, Andreas Karlsson
<andreas(at)proxel(dot)se> escreveu:
> Agreed, "-f -" would be acceptable. I use pg_restore to stdout a lot,
> but almost always manually and would have to have to remember and type
> "--convert-to-text".
>
Since no one has stepped up, I took a stab at it. It will prohibit
standard output unless '-f -' be specified. -l option also has the
same restriction.

It breaks backward compatibility and as Tom suggested a variant of
this patch (without docs) should be applied to back branches.

--
Euler Taveira Timbira -
http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento

Attachment Content-Type Size
0001-pg_restore-supports-stdout-in-file.patch text/x-patch 6.1 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-02-18 22:21:46 Re: proposal: pg_restore --convert-to-text
Previous Message Tom Lane 2019-02-18 22:13:27 Re: crash in pg_identify_object_as_address