Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UkiGr-0005Yx-7m for pgsql-bugs@arkaria.postgresql.org; Thu, 06 Jun 2013 22:03:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UkiGq-0002Om-Oc for pgsql-bugs@arkaria.postgresql.org; Thu, 06 Jun 2013 22:03:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UkiGq-0002Oh-7Z for pgsql-bugs@postgresql.org; Thu, 06 Jun 2013 22:03:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UkiGn-0004FU-4e for pgsql-bugs@postgresql.org; Thu, 06 Jun 2013 22:02:59 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r56M2tav006156; Thu, 6 Jun 2013 18:02:55 -0400 (EDT) From: Tom Lane To: ijmorlan@uwaterloo.ca cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8215: pg_dump includes table out of order in SQL dump In-reply-to: References: Comments: In-reply-to ijmorlan@uwaterloo.ca message dated "Thu, 06 Jun 2013 16:00:15 -0000" Date: Thu, 06 Jun 2013 18:02:55 -0400 Message-ID: <6155.1370556175@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org ijmorlan@uwaterloo.ca writes: > My understanding is that pg_dump is supposed to include tables in SQL dumps > in alphabetical order by table name. That's the default behavior as long as there are no ordering constraints that would dictate doing something else. You haven't provided enough info to tell whether there's such a constraint in your case ... regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs