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