Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c89Ke-0006CV-Oo for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Nov 2016 17:21:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c89Kd-0004oQ-Ae for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Nov 2016 17:21:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c89JE-00039Z-JR for pgsql-hackers@postgresql.org; Sat, 19 Nov 2016 17:20:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c89JB-000800-Ld for pgsql-hackers@postgresql.org; Sat, 19 Nov 2016 17:20:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uAJHK7wu024988; Sat, 19 Nov 2016 12:20:07 -0500 From: Tom Lane To: Stephen Frost cc: pgsql-hackers@postgresql.org Subject: Re: pg_dump -s -b In-reply-to: <20161119170835.GZ13284@tamriel.snowman.net> References: <20161119170835.GZ13284@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Sat, 19 Nov 2016 12:08:35 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24986.1479576007.1@sss.pgh.pa.us> Date: Sat, 19 Nov 2016 12:20:07 -0500 Message-ID: <24987.1479576007@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Stephen Frost writes: > To wit, our docs specifically say: > ---- > Include large objects in the dump. This is the default behavior except > when --schema, --table, or --schema-only is specified, so the -b switch > is only useful to add large objects to selective dumps. > ---- Clearly, this is an oversimplification. > However, a 'pg_dump -s -b' won't include blobs, which appears to be due > to the masking performed in _tocEntryRequired() whereby we strip the > REQ_DATA out if we are in schema-only mode. > Further, though perhaps less surprising, we don't include blobs when > --section=post-data is set, and only the definition of the blob (but no > data) when --section=pre-data is used. IMO, blobs are data, so those behaviors are correct. The docs should be fixed to match the code. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers