Re: [HACKERS] TODO item: teach pg_dump about sparsely-stored large objects

2012-10-09 Thread Greg Stark
On Tue, Oct 9, 2012 at 3:40 AM, Tom Lane wrote: > Admittedly, this is no different than what happens when you try to back > up a sparsely-stored Unix file, at least with simpler backup tools. > But it seems to me we should try a bit harder. Fwiw both GNU tar and GNU cp support creating sparse fil

[HACKERS] TODO item: teach pg_dump about sparsely-stored large objects

2012-10-08 Thread Tom Lane
The backend code for large objects goes to some lengths to be intelligent about sparsely-written blobs: if you seek out to the middle of nowhere and write a few bytes, you don't end up allocating space in pg_largeobject for all the byte positions you skipped over. However, pg_dump knows nothing of