BUG #7615: CREATE RULE + DEFAULT VALUES + pg_dump trouble - Mailing list pgsql-bugs

From pgmail@joh.to
Subject BUG #7615: CREATE RULE + DEFAULT VALUES + pg_dump trouble
Date
Msg-id E1TPCno-0006oa-KP@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #7615: CREATE RULE + DEFAULT VALUES + pg_dump trouble  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
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. :-(

pgsql-bugs by date:

Previous
From: Dave Page
Date:
Subject: Re: BUG #7613: INTIDB
Next
From: Tom Lane
Date:
Subject: Re: BUG #7615: CREATE RULE + DEFAULT VALUES + pg_dump trouble