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 1fiLi8-00082Z-Mw for pgsql-general@arkaria.postgresql.org; Wed, 25 Jul 2018 15:28:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fiLi6-0004mQ-EZ for pgsql-general@arkaria.postgresql.org; Wed, 25 Jul 2018 15:28:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiLi6-0004mE-6o for pgsql-general@lists.postgresql.org; Wed, 25 Jul 2018 15:28:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiLi3-0006DY-Mm for pgsql-general@postgresql.org; Wed, 25 Jul 2018 15:28:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w6PFSCGO004069; Wed, 25 Jul 2018 11:28:13 -0400 From: Tom Lane To: Ron cc: pgsql-general Subject: Re: Order in which tables are dumped In-reply-to: <9f53991a-a4dc-5172-4827-55a7412f7706@gmail.com> References: <9f53991a-a4dc-5172-4827-55a7412f7706@gmail.com> Comments: In-reply-to Ron message dated "Wed, 25 Jul 2018 10:15:56 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4067.1532532492.1@sss.pgh.pa.us> Date: Wed, 25 Jul 2018 11:28:12 -0400 Message-ID: <4068.1532532492@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ron 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