Re: column default dependant on another columns value - Mailing list pgsql-sql

From Tom Lane
Subject Re: column default dependant on another columns value
Date
Msg-id 25086.1214951064@sss.pgh.pa.us
Whole thread Raw
In response to Re: column default dependant on another columns value  ("Fernando Hevia" <fhevia@ip-tel.com.ar>)
Responses Re: column default dependant on another columns value
List pgsql-sql
"Fernando Hevia" <fhevia@ip-tel.com.ar> 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


pgsql-sql by date:

Previous
From: "Fernando Hevia"
Date:
Subject: Re: column default dependant on another columns value
Next
From: "Fernando Hevia"
Date:
Subject: Re: column default dependant on another columns value