Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tarhk-0003Y3-Ik for pgsql-bugs@postgresql.org; Tue, 20 Nov 2012 17:33:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tarhj-0008DP-6V for pgsql-bugs@postgresql.org; Tue, 20 Nov 2012 17:33:47 +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 qAKHXkrQ009657; Tue, 20 Nov 2012 12:33:46 -0500 (EST) From: Tom Lane To: timur.luchkin@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7684: pg_dumpall doesn't sort "CREATE SERVER"s options correctly In-reply-to: References: Comments: In-reply-to timur.luchkin@gmail.com message dated "Tue, 20 Nov 2012 15:22:16 +0000" Date: Tue, 20 Nov 2012 12:33:45 -0500 Message-ID: <9656.1353432825@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201211/165 X-Sequence-Number: 34723 timur.luchkin@gmail.com writes: > Looks like pg_dumpall sorts 'create server FOREIGN DATA WRAPPER' options > (keys) as varchar and not as integer. AFAIK there's no particular guarantee that they're dumped in any specific order. > which causes next error during the load: > ERROR: Pl/Proxy: partitions must be numbered consecutively > HINT: next valid partition number is 2 I'd say this is either a bug or a misdesign of pl/proxy. It should not be expecting that FDW options are stored in any specific physical order. Suggest reporting it at plproxy-users@pgfoundry.org. regards, tom lane