Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 0011B2B4151 for ; Sun, 20 May 2012 14:28:04 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SW9vG-0004RP-GA for pgsql-bugs@postgresql.org; Sun, 20 May 2012 17:28:03 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q4KHRn5J005302; Sun, 20 May 2012 13:27:49 -0400 (EDT) To: lr@pcorp.us cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6640: pg_dump does not always dump data of tables marked as editable in extension In-reply-to: References: Comments: In-reply-to lr@pcorp.us message dated "Tue, 15 May 2012 12:27:10 -0000" Date: Sun, 20 May 2012 13:27:48 -0400 Message-ID: <5301.1337534868@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/117 X-Sequence-Number: 33088 lr@pcorp.us writes: > This seems to be only an issue if a user individually chooses to backup a > table marked as editable in an extension, but works fine if full backup is > chosen. AFAICT this is a misunderstanding of the intended behavior of extension configuration tables. The data in them will be dumped when, and only when, the extension itself is included in the dump. Moreover, if you have a mixture of extension-provided and user-provided data in the table, as seems to be the case here, you really need to take measures to keep those separate so that you can dump only the user-provided entries. This is not a "fire and forget" type of feature, it requires nontrivial effort on the part of the extension author to make it useful. Please see http://www.postgresql.org/docs/9.1/static/extend-extensions.html#AEN51978 regards, tom lane