Re: pg_dump making schema output consistent.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Lawrence <jljatone@xxxxxxxxx> writes:
> Your explaination is also a little confusing, just for clarity going to ask
> some explicit questions.

> 1) 'Ordinarily PG will preserve column order faithfully.' what is column
> order? do you just mean the order in which columns were added to a table?
> your example implies this.

Whatever the table's column order is, as shown by e.g. "SELECT * FROM tab".

> 2) what is the difference between 'PG' and pg_dump? (I'm reading it as PG =
> postgresql server process, pg_dump as the dump tool).

In this case I was using it to mean the whole system, server and pg_dump
both.

> given that I've correctly understood your email, it doesn't directly
> address the issue I'm pointing out with column order in the schema dump.

Well, then I'm confused.  But you certainly haven't given enough
information for anyone to do more than guess at what your issue is.

> Given the fact without any schema details you hit on the fact these tables
> happen to use table inheritance, I'm inclined to lean towards that being
> the root cause of the differences in the schema dumps between machines.

It seems likely to me that it's something like this type of difference
having bit you when these databases were set up, ie the column orders
are already different on your two source databases.  Perhaps one was
made by dump/restore from the other, and the original had already had
some order-affecting DDL done on it.

			regards, tom lane


-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux