Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TPCnv-0001FL-IQ for pgsql-bugs@postgresql.org; Fri, 19 Oct 2012 13:39:59 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TPCnq-0006Rb-0b for pgsql-bugs@postgresql.org; Fri, 19 Oct 2012 13:39:58 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TPCno-00057v-Sw for pgsql-bugs@postgresql.org; Fri, 19 Oct 2012 13:39:53 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TPCno-0006oa-KP for pgsql-bugs@postgresql.org; Fri, 19 Oct 2012 13:39:52 +0000 Date: Fri, 19 Oct 2012 13:39:52 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7615: CREATE RULE + DEFAULT VALUES + pg_dump trouble To: pgsql-bugs@postgresql.org From: pgmail@joh.to X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201210/190 X-Sequence-Number: 34490 The following bug has been logged on the website: Bug reference: 7615 Logged by: Marko Tiikkaja Email address: pgmail@joh.to PostgreSQL version: 9.1.6 Operating system: Linux Description: = Hi, Doing this: CREATE TABLE foo(a int); CREATE TABLE bar(a int); CREATE RULE bar_rule1 AS ON INSERT TO bar DO ALSO INSERT INTO foo DEFAULT VALUES; breaks pg_dump. It outputs the following: CREATE RULE bar_rule1 AS ON INSERT TO bar DO INSERT INTO foo () VALUES (); which obviously won't work. :-(