Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ftzcg-00044A-1g for pgsql-general@arkaria.postgresql.org; Sun, 26 Aug 2018 18:18:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ftzcb-0002Re-Kr for pgsql-general@arkaria.postgresql.org; Sun, 26 Aug 2018 18:18:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ftzcb-0002RQ-7t for pgsql-general@lists.postgresql.org; Sun, 26 Aug 2018 18:18:45 +0000 Received: from mail-oi0-x244.google.com ([2607:f8b0:4003:c06::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ftzcU-0007yy-3R for pgsql-general@lists.postgresql.org; Sun, 26 Aug 2018 18:18:43 +0000 Received: by mail-oi0-x244.google.com with SMTP id m11-v6so23585885oic.2 for ; Sun, 26 Aug 2018 11:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=FoF9Pgqe+iJtTIieYzxXsGqVQi5AoTjQl5AiYSb2bdQ=; b=rhmTn16mcO1O4NGoTvlCS9qQ5S8w68R8izQovqZ53/YJzm/BdJr/PERMwRngDbhCOS v2y3TcGnIqTrstrmKXxI36IkulNX6u/jm6jouCm9yR1/S/XoSti2L8QgCRUV3rLWknX+ h1z1nGibcoxoZ62L4r50CVkUk5MyIaCZ5hQdr8i3dnw7Uxv0PAyCehPWQQ5ugNReYnrF pfeZyLxBN7EGWZ7QGZObUzH9ZRTKb9L72KcqC43yiIRmWdQfn/kJocdMUeLkR+F+E2j1 mvm9tdPU6iSdj649it4CWTLxy0q2xkDxSDufKdWaewASEd0nGbAJL02wGYgMT3AkBHKO HAaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=FoF9Pgqe+iJtTIieYzxXsGqVQi5AoTjQl5AiYSb2bdQ=; b=NhqptIt0F1y1njZt6FRjVfizQCAKOhdzrtM2Xyqv5+4DIm7uh/pQx7s04q829Zj6W0 k2OputS2J27wDhvuZwNl8Hbo80aIFeEfjzlc32bpwayNybDrXoV07L1O6p6m1txWVmZH dAIn0TvF2lRwoQ1R5/8vJ2cM4+BryMUNQfa0/A3JT5yhXJ+pPef5noIEfNrKONGFQaga NOGUolHENr85LTXVncLfx6q8dp5RvE4RD/hRgs/d16rUF8jFuVqb5xn/lW85D4fYB5y4 p8rfVTe/9dDeX1D3Vvyp1LRJ7N9mh20jEWP2F9LyTEk09X8jQQ6AT3H2lnqWGq2vcUJk gPoA== X-Gm-Message-State: APzg51C4JL3tY72s1jRiKM1Ud83dfLYIGr3ql6GB4bxFd8CHRSvcUgYc rg5TtNfX4C9llQLz7O+ahmMOPJOF X-Google-Smtp-Source: ANB0VdbzBj78JJ7CM7eX5oVGBRrt4wtfdwxEq/UEkAsLcTZKSlpDx7vD7bmF4aDzELBMpajSRib3RQ== X-Received: by 2002:aca:650d:: with SMTP id m13-v6mr10052065oim.178.1535307516716; Sun, 26 Aug 2018 11:18:36 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id f144-v6sm13365882oib.39.2018.08.26.11.18.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Aug 2018 11:18:35 -0700 (PDT) Subject: Re: pg_dump order of operation To: pgsql-general@lists.postgresql.org References: <19812.1535297050@sss.pgh.pa.us> From: Ron Message-ID: Date: Sun, 26 Aug 2018 13:18:35 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <19812.1535297050@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 08/26/2018 10:24 AM, Tom Lane wrote: > Ron writes: >> In v8.4, I noticed that the tables seemed to be dumped in alphabetical >> order. Not so much, though, in a multithreaded 9.6 dump of an 8.4 database; >> there's no pattern that I can discern. >> In what order does the 9.6 pg_dump dump tables? > I don't believe the ordering rules have changed materially since 8.4; > it's intended to be by object kind, and within that by name, except > where dependencies force doing something else. I thought that didn't matter, since FK and PK constraints were added (in the required order) after all data was loaded). > But what are you thinking constitutes the "dump order" in a parallel dump? I don't understand your question. -- Angular momentum makes the world go 'round.