pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Frank Joerdens <frank@joerdens.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Rule trouble (looks to me exactly like the example)
Date: Fri, 05 Apr 2002 00:59:49 -0500
Message-ID: <22094.1017986389@sss.pgh.pa.us> (raw)
In-Reply-To: <25306.1017948553@sss.pgh.pa.us>
References: <20020404191719.C30469@superfly.archi-me-des.de>
	<25306.1017948553@sss.pgh.pa.us>

I wrote:
> What's happening is that "new.id" is effectively still NULL at the point
> where the rule is processed, so the rule WHERE condition fails.  I'm not
> sure why you're bothering with that WHERE condition anyway ... but this
> seems to be another argument for moving INSERT's default-value-insertion
> step to before the rule rewriter.

I've committed fixes for this into CVS tip.

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <22094.1017986389@sss.pgh.pa.us>
Permalink:  ../22094.1017986389@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22094.1017986389@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, frank@joerdens.de
  Subject: Re: Rule trouble (looks to me exactly like the example)
  In-Reply-To: <22094.1017986389@sss.pgh.pa.us>

* 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