BUG #7615: CREATE RULE + DEFAULT VALUES + pg_dump trouble

From: pgmail(at)joh(dot)to
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #7615: CREATE RULE + DEFAULT VALUES + pg_dump trouble
Date: 2012-10-19 13:39:52
Message-ID: E1TPCno-0006oa-KP@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 7615
Logged by: Marko Tiikkaja
Email address: pgmail(at)joh(dot)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. :-(

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2012-10-19 15:05:18 Re: BUG #7615: CREATE RULE + DEFAULT VALUES + pg_dump trouble
Previous Message Amit kapila 2012-10-19 11:42:16 Re: [BUGS] BUG #7534: walreceiver takes long time to detect n/w breakdown