pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pgmail@joh.to
To: pgsql-bugs@postgresql.org
Subject: BUG #7615: CREATE RULE + DEFAULT VALUES + pg_dump trouble
Date: Fri, 19 Oct 2012 13:39:52 +0000
Message-ID: <E1TPCno-0006oa-KP@wrigleys.postgresql.org> (raw)

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. :-(





view thread (2+ messages)  latest in thread

Message-ID: <E1TPCno-0006oa-KP@wrigleys.postgresql.org>
Permalink:  ../E1TPCno-0006oa-KP@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1TPCno-0006oa-KP@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pgmail@joh.to
  Subject: Re: BUG #7615: CREATE RULE + DEFAULT VALUES + pg_dump trouble
  In-Reply-To: <E1TPCno-0006oa-KP@wrigleys.postgresql.org>
  References: <E1TPCno-0006oa-KP@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox