pg.ddx.io pgsql-hackers@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: Stephen Frost <sfrost@snowman.net>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Michael Banck <michael.banck@credativ.de>
Cc: Jim Nasby <Jim.Nasby@bluetreble.com>
Cc: Kevin Grittner <kgrittn@gmail.com>
Cc: Jordan Gigov <coladict@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Change in "policy" on dump ordering?
Date: Thu, 27 Jul 2017 15:52:13 -0400
Message-ID: <27042.1501185133@sss.pgh.pa.us> (raw )
In-Reply-To: <CA+TgmoZZXEHpz_pKOSfArkWpU6WDd55NoV8=1-sNiZxY1kqMzQ@mail.gmail.com >
References: <8f64786e-824d-7c0d-33a6-3d9e1c8e9fde@2ndquadrant.com >
<edc1dc0d-66ba-0d9e-b0e7-890f064789d7@BlueTreble.com >
<33b25c65-94f1-6ff6-c717-61a56294a255@2ndquadrant.com >
<a537995b-ccdb-f668-5f67-98e9b9b4a99d@BlueTreble.com >
<75409fb1-bd96-25c2-f6b0-c24e28ed2684@2ndquadrant.com >
<65049c27-96bf-317b-b435-931f6041f94c@BlueTreble.com >
<67d35333-ef65-074a-b2be-52440f245e43@2ndquadrant.com >
<753dcafc-a648-9041-e9ca-e405cd4498f4@2ndquadrant.com >
<20170306083342.GA8374@nighthawk.caipicrew.dd-dns.de >
<2605f6d0-8444-528e-4e38-6b13968cfeb7@2ndquadrant.com >
<20170306140101.GQ9812@tamriel.snowman.net >
<28572.1500912583@sss.pgh.pa.us >
<18658.1501037135@sss.pgh.pa.us >
<CA+TgmoYiUTPQGCjHYJ6DeiR1Qf-74XFO2Rp2WZnA88FdorZg6g@mail.gmail.com >
<22969.1501075830@sss.pgh.pa.us >
<19472.1501094484@sss.pgh.pa.us >
<CA+TgmoZZXEHpz_pKOSfArkWpU6WDd55NoV8=1-sNiZxY1kqMzQ@mail.gmail.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, Jul 26, 2017 at 2:41 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> The bigger issue is whether there's some failure case this would cause
>> that I'm missing altogether. Thoughts?
> I think dependencies are fundamentally the right model for this sort
> of problem. I can't imagine what could go wrong that wouldn't amount
> to a failure to insert all of the right dependencies, and thus be
> fixable by inserting whatever was missing.
I tend to agree. One fairly obvious risk factor is that we end up with
circular dependencies, but in that case we have conflicting requirements
and we're gonna have to decide what to do about them no matter what.
Another potential issue is pg_dump performance; this could result in
a large increase in the number of DumpableObjects and dependency links.
The topological sort is O(N log N), so we shouldn't hit any serious big-O
problems, but even a more-or-less-linear slowdown might be problematic for
some people. On the whole though, I believe pg_dump is mostly limited by
its server queries, and that would probably still be true.
But the big point: even if we had the code for this ready-to-go, I'd
be hesitant to inject it into v10 at this point, let alone back-patch.
If we go down this path we won't be seeing a fix for the matview ordering
problem before v11 (at best). Maybe that's acceptable considering it's
been there for several years already, but it's annoying.
So I'm thinking we should consider the multi-pass patch I posted as
a short-term, backpatchable workaround, which we could hope to replace
with dependency logic later.
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
view thread (29+ messages) latest in thread
Message-ID: <27042.1501185133@sss.pgh.pa.us>
Permalink: ../27042.1501185133@sss.pgh.pa.us/
Also on: postgresql.org/message-id/27042.1501185133@sss.pgh.pa.us
copy link · copy postgr.es
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, sfrost@snowman.net, peter.eisentraut@2ndquadrant.com, michael.banck@credativ.de, Jim.Nasby@bluetreble.com, kgrittn@gmail.com, coladict@gmail.com
Subject: Re: Change in "policy" on dump ordering?
In-Reply-To: <27042.1501185133@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