why use -Ft or -Fc instead of the other on pg_dump?

Поиск
Список
Период
Сортировка
Искать

why use -Ft or -Fc instead of the other on pg_dump?

От:
Douglas J Hunley <doug@hunley.homeip.net>
Дата:
I seemed to have walked into a "spirited" debate at work today, so I'm turning 
to the authorities to get it resolved. Why would one choose -Ft over -Fc (or 
vice-versa) when doing pg_dump? Is there truly any difference of note 
(outside the formats themselves)?

Thanks
-- 
Douglas J Hunley (doug at hunley.homeip.net) - Linux User #174778
http://doug.hunley.homeip.net

The professor spit too much when he talked. It was like being at Sea 
World. "The first five rows will get wet."

Re: why use -Ft or -Fc instead of the other on pg_dump?

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Douglas J Hunley  writes:
> I seemed to have walked into a "spirited" debate at work today, so I'm turning 
> to the authorities to get it resolved. Why would one choose -Ft over -Fc (or 
> vice-versa) when doing pg_dump?

I can't really imagine any reason to choose -Ft, except wanting to do
post-processing of the dump with command-line tools.  -Ft's lack of
compression and limitations on component size are sufficient reasons
not to choose it without a specific need to.  I think it has some
other limitations too, but those are two that I recall immediately.

			regards, tom lane

Re: why use -Ft or -Fc instead of the other on pg_dump?

От:
Douglas J Hunley <doug@hunley.homeip.net>
Дата:
On Tuesday 19 February 2008 13:12:23 Tom Lane wrote:
> I can't really imagine any reason to choose -Ft, except wanting to do
> post-processing of the dump with command-line tools.  -Ft's lack of
> compression and limitations on component size are sufficient reasons
> not to choose it without a specific need to.  I think it has some
> other limitations too, but those are two that I recall immediately.

Excellent. Pretty much closes the debate here. Thx Tom

-- 
Douglas J Hunley (doug at hunley.homeip.net) - Linux User #174778
http://doug.hunley.homeip.net

"She's gone! Oh my God, she used me. I was used. I was used! Cool"

Re: why use -Ft or -Fc instead of the other on pg_dump?

От:
Andrew Sullivan <ajs@crankycanuck.ca>
Дата:
On Tue, Feb 19, 2008 at 12:59:55PM -0500, Douglas J Hunley wrote:
> I seemed to have walked into a "spirited" debate at work today, so I'm turning 
> to the authorities to get it resolved. Why would one choose -Ft over -Fc (or 
> vice-versa) when doing pg_dump? Is there truly any difference of note 
> (outside the formats themselves)?

My rule is "never use -Ft".  I've tripped over various bugs over the years. 
Indeed, I just had another example of one (from 7.4, mind) the other day.

A

FAQ