pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: senor <frio_cervesa@hotmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: pg_upgrade --jobs
Date: Sat, 06 Apr 2019 19:50:58 -0400
Message-ID: <20138.1554594658@sss.pgh.pa.us> (raw)
In-Reply-To: <BYAPR01MB3701D38CD99FE2E23A2FE17FF7520@BYAPR01MB3701.prod.exchangelabs.com>
References: <BYAPR01MB370142138620DE0D3DD6120BF7520@BYAPR01MB3701.prod.exchangelabs.com>
	<1c0469fb-1878-35ac-8468-78ce47299638@aklaver.com>
	<BYAPR01MB370161A441B39513EF47FE5AF7520@BYAPR01MB3701.prod.exchangelabs.com>
	<16144.1554588125@sss.pgh.pa.us>
	<BYAPR01MB3701D38CD99FE2E23A2FE17FF7520@BYAPR01MB3701.prod.exchangelabs.com>

senor <frio_cervesa@hotmail.com> writes:
> Is the limitation simply the state of development to date or is there
> something about dumping the schemas that conflicts with paralleling?

At minimum, it'd take a complete redesign of pg_dump's output format,
and I'm not even very sure what such a redesign would look like.  All
the schema information goes into a single file that has to be written
serially.  Trying to make it be one file per table definition wouldn't
really fix much: somewhere there has to be a "table of contents", plus
where are you going to put the dependency info that shows what ordering
is required for restore?

> The --link option to pg_upgrade would be so much more useful if it
> weren't still bound to serially dumping the schemas of half a million
> tables.

To be perfectly blunt, if you've got a database with half a million
tables, You're Doing It Wrong.

			regards, tom lane





view thread (15+ messages)  latest in thread

Message-ID: <20138.1554594658@sss.pgh.pa.us>
Permalink:  ../20138.1554594658@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20138.1554594658@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, frio_cervesa@hotmail.com
  Subject: Re: pg_upgrade --jobs
  In-Reply-To: <20138.1554594658@sss.pgh.pa.us>
  References: <BYAPR01MB370142138620DE0D3DD6120BF7520@BYAPR01MB3701.prod.exchangelabs.com> <1c0469fb-1878-35ac-8468-78ce47299638@aklaver.com> <BYAPR01MB370161A441B39513EF47FE5AF7520@BYAPR01MB3701.prod.exchangelabs.com> <16144.1554588125@sss.pgh.pa.us> <BYAPR01MB3701D38CD99FE2E23A2FE17FF7520@BYAPR01MB3701.prod.exchangelabs.com> <20138.1554594658@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