pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedOrder in which tables are dumped
5+ messages / 3 participants
[nested] [flat]
* Order in which tables are dumped
@ 2018-07-25 15:15 Ron <ronljohnsonjr@gmail.com>
2018-07-25 15:28 ` Re: Order in which tables are dumped Tom Lane <tgl@sss.pgh.pa.us>
2018-07-25 15:43 ` Re: Order in which tables are dumped Vick Khera <vivek@khera.org>
0 siblings, 2 replies; 5+ messages in thread
From: Ron @ 2018-07-25 15:15 UTC (permalink / raw)
To: pgsql-general
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?
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Order in which tables are dumped
2018-07-25 15:15 Order in which tables are dumped Ron <ronljohnsonjr@gmail.com>
@ 2018-07-25 15:28 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-07-25 15:44 ` Re: Order in which tables are dumped Ron <ronljohnsonjr@gmail.com>
1 sibling, 1 reply; 5+ messages in thread
From: Tom Lane @ 2018-07-25 15:28 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; +Cc: pgsql-general
Ron <ronljohnsonjr@gmail.com> writes:
> 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".
Looks like standard C-locale (ASCII) sort order to me ...
> Are there some other rules besides alphabetical sorting?
Dependencies can override the normal sort order, though a dependency
directly between two tables is rare.
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Order in which tables are dumped
2018-07-25 15:15 Order in which tables are dumped Ron <ronljohnsonjr@gmail.com>
2018-07-25 15:28 ` Re: Order in which tables are dumped Tom Lane <tgl@sss.pgh.pa.us>
@ 2018-07-25 15:44 ` Ron <ronljohnsonjr@gmail.com>
0 siblings, 0 replies; 5+ messages in thread
From: Ron @ 2018-07-25 15:44 UTC (permalink / raw)
To: pgsql-general
On 07/25/2018 10:28 AM, Tom Lane wrote:
> Ron <ronljohnsonjr@gmail.com> writes:
>> 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".
> Looks like standard C-locale (ASCII) sort order to me ...
I hate spreadsheets. And gnu sort, and unicode... :(
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Order in which tables are dumped
2018-07-25 15:15 Order in which tables are dumped Ron <ronljohnsonjr@gmail.com>
@ 2018-07-25 15:43 ` Vick Khera <vivek@khera.org>
2018-07-25 16:17 ` Re: Order in which tables are dumped Ron <ronljohnsonjr@gmail.com>
1 sibling, 1 reply; 5+ messages in thread
From: Vick Khera @ 2018-07-25 15:43 UTC (permalink / raw)
To: pgsql-general
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.
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.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Order in which tables are dumped
2018-07-25 15:15 Order in which tables are dumped Ron <ronljohnsonjr@gmail.com>
2018-07-25 15:43 ` Re: Order in which tables are dumped Vick Khera <vivek@khera.org>
@ 2018-07-25 16:17 ` Ron <ronljohnsonjr@gmail.com>
0 siblings, 0 replies; 5+ messages in thread
From: Ron @ 2018-07-25 16:17 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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.
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2018-07-25 16:17 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-07-25 15:15 Order in which tables are dumped Ron <ronljohnsonjr@gmail.com>
2018-07-25 15:28 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-07-25 15:44 ` Ron <ronljohnsonjr@gmail.com>
2018-07-25 15:43 ` Vick Khera <vivek@khera.org>
2018-07-25 16:17 ` Ron <ronljohnsonjr@gmail.com>
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