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 Sql > Re: column defa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 3556 of 3631
Post > Topic >>

Re: column default dependant on another columns value

by tgl@[EMAIL PROTECTED] (Tom Lane) Jul 1, 2008 at 06:24 PM

"Fernando Hevia" <fhevia@[EMAIL PROTECTED]
> writes:
> Anyway, the rule didn't work. Got "an infinite recursion error" when
> inserting on the table.
> Can't figure out where the recursion is

You didn't show us the rule, but I imagine that you think the WHERE
clause is applied while expanding the rule.  It's not, it can only
suppress rows at run-time; and what you've got is infinite macro
expansion recursion.

			regards, tom lane

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




 5 Posts in Topic:
column default dependant on another columns value
fhevia@[EMAIL PROTECTED]   2008-07-01 17:12:30 
Re: column default dependant on another columns value
richard.broersma@[EMAIL P  2008-07-01 13:44:46 
Re: column default dependant on another columns value
fhevia@[EMAIL PROTECTED]   2008-07-01 18:51:27 
Re: column default dependant on another columns value
tgl@[EMAIL PROTECTED] (T  2008-07-01 18:24:24 
Re: column default dependant on another columns value
fhevia@[EMAIL PROTECTED]   2008-07-02 10:52:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Thu Aug 21 23:05:22 CDT 2008.