pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Order in which tables are dumped
Date: Wed, 25 Jul 2018 11:17:48 -0500
Message-ID: <8120128d-fbf7-35dc-4e46-008e902d713e@gmail.com> (raw)
In-Reply-To: <CALd+dcde1jbrv8CZzjW40fd0KjeSYtwOG84gpk7mAf-Fy=0H7w@mail.gmail.com>
References: <9f53991a-a4dc-5172-4827-55a7412f7706@gmail.com>
	<CALd+dcde1jbrv8CZzjW40fd0KjeSYtwOG84gpk7mAf-Fy=0H7w@mail.gmail.com>

On 07/25/2018 10:43 AM, Vick Khera wrote:
> On Wed, Jul 25, 2018 at 11:15 AM, Ron <ronljohnsonjr@gmail.com 
> <mailto: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.

view thread (5+ messages)

Message-ID: <8120128d-fbf7-35dc-4e46-008e902d713e@gmail.com>
Permalink:  ../8120128d-fbf7-35dc-4e46-008e902d713e@gmail.com/
Also on:    postgresql.org/message-id/8120128d-fbf7-35dc-4e46-008e902d713e@gmail.com

 · 

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: ronljohnsonjr@gmail.com
  Subject: Re: Order in which tables are dumped
  In-Reply-To: <8120128d-fbf7-35dc-4e46-008e902d713e@gmail.com>
  References: <9f53991a-a4dc-5172-4827-55a7412f7706@gmail.com> <CALd+dcde1jbrv8CZzjW40fd0KjeSYtwOG84gpk7mAf-Fy=0H7w@mail.gmail.com> <8120128d-fbf7-35dc-4e46-008e902d713e@gmail.com>

* 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