pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Vlad Arkhipov <arhipov@dc.baikal.ru>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [PERFORM] Slow BLOBs restoring
Date: Thu, 09 Dec 2010 09:50:30 -0500
Message-ID: <6339.1291906230@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTinvRa_XM88FV8vJjjqkRONeNiQiY=Lxg5iARqtU@mail.gmail.com>
References: <4CFDF22B.7060209@dc.baikal.ru>
	<4CFF46BD.8070004@dc.baikal.ru>
	<14439.1291819581@sss.pgh.pa.us>
	<4D00559C.6070009@dc.baikal.ru>
	<29435.1291872532@sss.pgh.pa.us>
	<AANLkTinvRa_XM88FV8vJjjqkRONeNiQiY=Lxg5iARqtU@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Dec 9, 2010 at 12:28 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> * Mark BLOB TOC entries as SECTION_DATA, or somehow otherwise make them
>> parallelizable.  Also break the BLOBS data item apart into an item per
>> BLOB, so that that part's parallelizable.  Maybe we should combine the
>> metadata and data for each blob into one TOC item --- if we don't, it
>> seems like we need a dependency, which will put us back behind the
>> eight-ball.  I think the reason it's like this is we didn't originally
>> have a separate TOC item per blob; but now that we added that to support
>> per-blob ACL data, the monolithic BLOBS item seems pretty pointless.
>> (Another thing that would have to be looked at here is the dependency
>> between a BLOB and any BLOB COMMENT for it.)

> Is there any use case for restoring a BLOB but not the BLOB COMMENT or
> BLOB ACLs?  Can we just smush everything together into one section?

The ACLs are already part of the main TOC entry for the blob.  As for
comments, I'd want to keep the handling of those the same as they are
for every other kind of object.  But that just begs the question of why
comments are separate TOC entries in the first place.  We could
eliminate this problem if they became fields of object entries across
the board.  Which would be a non-backwards-compatible change in dump
file format, but doing anything about the other issues mentioned above
will require that anyway.

I'm not certain however about whether it's safe to treat the
object-metadata aspects of a blob as SECTION_DATA rather than
SECTION_PRE_DATA.  That will take a bit of investigation.  It seems like
there shouldn't be any fundamental reason for it not to work, but that
doesn't mean there's not any weird assumptions buried someplace in
pg_dump ...

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <6339.1291906230@sss.pgh.pa.us>
Permalink:  ../6339.1291906230@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6339.1291906230@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, arhipov@dc.baikal.ru, pgsql-hackers@postgresql.org
  Subject: Re: [PERFORM] Slow BLOBs restoring
  In-Reply-To: <6339.1291906230@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox