Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 645909F9635 for ; Sun, 26 Aug 2007 23:49:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 65777-09 for ; Sun, 26 Aug 2007 23:49:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 2192B9F95B0 for ; Sun, 26 Aug 2007 23:49:52 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id l7R2nfX00882; Sun, 26 Aug 2007 22:49:41 -0400 (EDT) From: Bruce Momjian Message-Id: <200708270249.l7R2nfX00882@momjian.us> Subject: Re: Block size with pg_dump? In-Reply-To: <5539298E-EF2B-4CA2-8BFB-6D8656E05610@myemma.com> To: Erik Jones Date: Sun, 26 Aug 2007 22:49:41 -0400 (EDT) CC: Jean-David Beyer , pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL123] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/212 X-Sequence-Number: 29150 Erik Jones wrote: > >>> On the way back, likewise I could pipe the tape through dd before > >>> giving it > >>> to pg_restore. > >>> > >>> Does pg_dump care what blocksize it gets? If so, what is it? > >> > >> I assume you could pipe pg_dump into dd and specify the block size in > >> dd. > >> > > Of course on the way out I can do that. > > > > The main question is, If I present pg_restore with a 65536-byte > > blocksize > > and it is expecting, e.g., 1024-bytes, will the rest of each block get > > skipped? I.e., do I have to use dd on the way back too? And if so, > > what > > should the blocksize be? > > Postgres (by default) uses 8K blocks. That is true of the internal storage, but not of pg_dump's output because it is using libpq to pull rows and output them in a stream, meaning there is no blocking in pg_dumps output itself. -- Bruce Momjian http://momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +