X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 98DAA9F9CC1 for ; Wed, 3 May 2006 15:06:01 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 28259-06 for ; Wed, 3 May 2006 15:05:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 2A0F39F9C1D for ; Wed, 3 May 2006 15:05:48 -0300 (ADT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by svr4.postgresql.org (Postfix) with ESMTP id 435095B04BD for ; Wed, 3 May 2006 18:05:43 +0000 (GMT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FbLj7-0002tt-FO for pgsql-docs@postgresql.org; Wed, 03 May 2006 20:05:30 +0200 Received: from simba.summersault.com ([12.161.105.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 May 2006 20:05:29 +0200 Received: from mark by simba.summersault.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 May 2006 20:05:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-docs@postgresql.org From: Mark Stosberg Subject: Re: pg_dump docs should mention TMPDIR Date: Wed, 3 May 2006 18:05:23 +0000 (UTC) Lines: 35 Message-ID: References: <17708.1146678550@sss.pgh.pa.us> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: simba.summersault.com X-Archive: encrypt User-Agent: slrn/0.9.8.0 (Linux) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/24 X-Sequence-Number: 3551 On 2006-05-03, Tom Lane wrote: > Mark Stosberg writes: >> A suggested addition to the pg_dump docs: >> This would be an extension to the documentation for the "tar" format: > >> The tar format needs some space to create temporary files. By default >> "/tmp" is used. On systems with small "/tmp" partitions, set the >> "TMPDIR" environment variable to a location with more space, such as >> "/usr/tmp". > > There is no reference to TMPDIR in the pg_dump code. It may be that > tmpfile() pays attention to such an environment variable on your > machine, but there's nothing about it in the Single Unix Spec. Yes, on FreeBSD "man tmpfile()" documents the use of TMPDIR. If TMPDIR isn't being respected globally, perhaps there /should/ be logic in the code to make that so. Even on fairly modern FreeBSD installs, sometimes "/tmp" only has 256 MB of room. There really should be a reliable way to specify a different temporary directory. >> Also, I would like it if the pg_dump docs more assertively recommended >> one of the "tar" or "custom" formats. They seem very similiar. > > Yeah. I think it should specifically recommend custom format. The only > reason for using tar format would be if you want to process the file > later with something other than pg_restore. Thanks for the recommendation. Is that any concern that over time newer pg_restore's won't read old "custom" formats? That would be my only worry-- that the data would be locked in a binary format which becomes unsupported. Mark