From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Stephen Frost <sfrost(at)snowman(dot)net> |
Cc: | "imai(dot)yoshikazu(at)fujitsu(dot)com" <imai(dot)yoshikazu(at)fujitsu(dot)com>, Euler Taveira <euler(at)timbira(dot)com(dot)br>, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, Justin Pryzby <pryzby(at)telsasoft(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: v12 and pg_restore -f- |
Date: | 2019-10-17 10:24:10 |
Message-ID: | 19891.1571307850@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Stephen Frost <sfrost(at)snowman(dot)net> writes:
> First, I'd like to clarify what I believe Tom's suggestion is, and then
> talk through that, as his vote sways this topic pretty heavily.
> Tom, I take it your suggestion is to have '-f -' be accepted to mean
> 'goes to stdout' in all branches?
Yes.
> That goes against the argument that
> we don't want to break existing scripts, as it's possible that there are
> existing scripts that depend on '-f -' actually going to a './-' file.
While that's theoretically possible, I think that the number of cases
where somebody is actually expecting that is epsilon. It seems more
useful to tell people that they can now use "-f -" in all branches,
and it's required to use it as of v12.
Alternatively, we could revoke the requirement to use "-f -" in 12,
and wait a couple releases before enforcing it. The fundamental
problem here is that we tried to go from "-f - doesn't work" to
"you must use -f -" with no grace period where "-f - is optional".
In hindsight that was a bad idea.
> If you meant for all branches to accept '-f -' and have it go to a './-'
> file then that's just a revert of this entire change, which I can't
> agree with either
No, I'm not proposing a full revert. But there's certainly room to
consider reverting the part that says you *must* write "-f -" to get
output to stdout.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Laurenz Albe | 2019-10-17 11:09:14 | Re: PostgreSQL memory usage |
Previous Message | David Steele | 2019-10-17 10:18:42 | Re: pgbackrest with PAF(corosync and pacmaker) |
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2019-10-17 10:30:36 | Re: [HACKERS] Block level parallel vacuum |
Previous Message | 曾文旌 (义从) | 2019-10-17 10:18:34 | Re: [Proposal] Global temporary tables |