Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Bugs > Re: BUG #4271: ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 3883 of 4088
Post > Topic >>

Re: BUG #4271: dropped columns conflict with returning rules

by bashtanov@[EMAIL PROTECTED] ("Alexey Bashtanov") Jun 29, 2008 at 08:25 PM

Hello, Tom!

> What did you do *exactly*?

Here's the example of command sequence that lead to this error:

luh=# create table foo(a int);
CREATE TABLE
luh=# alter TABLE foo add column b int;
ALTER TABLE
luh=# alter TABLE foo drop column b;   
ALTER TABLE
luh=# alter TABLE foo add column c int;
ALTER TABLE
luh=# create table foo_child() inherits (foo);
CREATE TABLE
luh=# create or replace rule myrule as on insert to foo do instead
insert into foo_child values(new.*) returning foo_child.*;
ERROR:  cannot convert relation containing dropped columns to view
luh=# 

> > this rule started to work incorrectly: it did not store foo and
quackquack
> > values but used nulls instead.
> 
> This is expected behavior because the * expressions are expanded when
> the rule is defined:

That's OK

Thanks,
 Alexey

-- 
http://www.fastmail.fm
- The way an email service should be


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
 




 5 Posts in Topic:
BUG #4271: dropped columns conflict with returning rules
bashtanov@[EMAIL PROTECTE  2008-06-29 02:07:50 
Re: BUG #4271: dropped columns conflict with returning rules
tgl@[EMAIL PROTECTED] (T  2008-06-29 11:49:58 
Re: BUG #4271: dropped columns conflict with returning rules
tgl@[EMAIL PROTECTED] (T  2008-06-29 12:38:33 
Re: BUG #4271: dropped columns conflict with returning
bruce@[EMAIL PROTECTED]   2008-08-20 17:27:05 
Re: BUG #4271: dropped columns conflict with returning rules
bashtanov@[EMAIL PROTECTE  2008-06-29 20:25:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 1:29:41 CDT 2008.