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 1fiMU8-0002Kg-0E for pgsql-general@arkaria.postgresql.org; Wed, 25 Jul 2018 16:17:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fiMU6-00039g-GQ for pgsql-general@arkaria.postgresql.org; Wed, 25 Jul 2018 16:17:54 +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 1fiMU6-00039Z-59 for pgsql-general@lists.postgresql.org; Wed, 25 Jul 2018 16:17:54 +0000 Received: from mail-oi0-x241.google.com ([2607:f8b0:4003:c06::241]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fiMU3-0005l7-Qk for pgsql-general@lists.postgresql.org; Wed, 25 Jul 2018 16:17:52 +0000 Received: by mail-oi0-x241.google.com with SMTP id n21-v6so14915944oig.3 for ; Wed, 25 Jul 2018 09:17:51 -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-language; bh=k85+zO3tpBbTNI+uljeKHf9xnRBLkyi3xctYAMURPcI=; b=XvEIPA+KTgR2m++ZNFqfjcYedSasruqWDOT/x4U7K8IGl39hew9Oq9rUoQ1hItAyuc mBA8zFYLpU8nY9XnfbSDIqYORdY4rltIPYLFA3kQ4GxJ6Ahd4Iv2mlnrd4IrLV9sV+S3 +TCO6mBTA6QuLvJ3b61WG0+8gUgI9nyaUrOkkDiv1cstpbFbir3sjnnqXmLJorB7jHuJ 0eZasqKX7p+oT92j7TRl4r5sG068lVrrh80vzRmzYNrzaB1VFQp9L9Ju7IGIH9jDrUpO lIeLpr4+4DMxNLhVn3ey10nMuSMa97f8CFCLMPT61GfqBMNAtKR3FJzf+m1oiUoejzW1 Cmxw== 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-language; bh=k85+zO3tpBbTNI+uljeKHf9xnRBLkyi3xctYAMURPcI=; b=ZNQnQUlBBT2CX++/LL6eBy0JDPkXhDLz5HuCJ6jKUOa0gfzcEKqmX7hthjux2q0ELH H3FOEvzZjZcaACT7fHdW9VDXtY1rF4Ire7NYxAGIp3RJrtwBNaSbr5q9rONZEf61HFFz pa0Chu6gpnnWJfTUOiXA5KRgE2jkMUZR0ZN4ALtIQqRRQNXMIt0L6tex65blsv2sS4w+ G8527bj1agsL/1fHIsPnCkTWzFV3s6jLQb1Fi/vEkDSJGWH5EJUppOFI64MsGAIS6ZBm um3ZRYignYVgTiGmM44btBCCNAcdV1KGrgzZNPBV6vWezhEnhJcdvdPDWHI77l6VmhLk VxYw== X-Gm-Message-State: AOUpUlFgeSM07Cf/hPV9uuc2mibPnVtYDK6ILuTOdvuTq/Z1g7p1/ybs nUvEKdGcluU3k/Hy28qYru2RZkGs X-Google-Smtp-Source: AAOMgpdRuxa+NQEcyqhImc0KndQBkCWdNj3b0jqW3tomvyRTTUbaNcOoZACd1YfcBLAee0h3gtADuA== X-Received: by 2002:aca:af11:: with SMTP id y17-v6mr3773543oie.274.1532535470595; Wed, 25 Jul 2018 09:17:50 -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 m62-v6sm35095802oik.30.2018.07.25.09.17.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 09:17:49 -0700 (PDT) Subject: Re: Order in which tables are dumped To: pgsql-general@lists.postgresql.org References: <9f53991a-a4dc-5172-4827-55a7412f7706@gmail.com> From: Ron Message-ID: <8120128d-fbf7-35dc-4e46-008e902d713e@gmail.com> Date: Wed, 25 Jul 2018 11:17:48 -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: Content-Type: multipart/alternative; boundary="------------5A957A2D23679B064194D51D" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------5A957A2D23679B064194D51D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 07/25/2018 10:43 AM, Vick Khera wrote: > On Wed, Jul 25, 2018 at 11:15 AM, Ron > wrote: > > Hi, > > v8.4 if it matters. > > It looked like the tables were being backed up in alphanumeric order, > but now I see that table "docformat" is being dumped *after* "doc_image". > > Are there some other rules besides alphabetical sorting? > > > Is there some concern about the order? Lower case f comes after _ in ascii. I'm tracking the progress of a very long backup, and the spreadsheet I using (and gnu sort, too, and IIRC Postgres' own ORDER BY) sort based on the current locale (en_US), whereas pg_dump sorts based on the C locale.  Thus, things aren't as I expected. > The only time it could possibly matter is on restore when there are > references for foreign keys, but on a restore those are all done after the > data is restored. -- Angular momentum makes the world go 'round. --------------5A957A2D23679B064194D51D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 07/25/2018 10:43 AM, Vick Khera wrote:
On Wed, Jul 25, 2018 at 11:15 AM, Ron <ronljohnsonjr@gmail.com> wrote:
Hi,

v8.4 if it matters.

It looked like the tables were being backed up in alphanumeric order, but now I see that table "docformat" is being dumped after "doc_image".

Are there some other rules besides alphabetical sorting?

Is there some concern about the order? Lower case f comes after _ in ascii.

I'm tracking the progress of a very long backup, and the spreadsheet I using (and gnu sort, too, and IIRC Postgres' own ORDER BY) sort based on the current locale (en_US), whereas pg_dump sorts based on the C locale.  Thus, things aren't as I expected.

The only time it could possibly matter is on restore when there are references for foreign keys, but on a restore those are all done after the data is restored. 

--
Angular momentum makes the world go 'round.
--------------5A957A2D23679B064194D51D--