Re: cannot use column references in default expression?

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Jignesh Shah <jignesh(dot)shah1980(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: cannot use column references in default expression?
Date: 2010-05-28 17:30:59
Message-ID: 4BFFFDD3.9060708@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 29/05/2010 1:20 AM, Jignesh Shah wrote:
> Could anyone please help me to get rid of following error? I want to set
> the 'ishuman' column based on the value of 'ID' column but it is not
> allowing me to do so. Any alternatives?

Use a BEFORE trigger to set it.

--
Craig Ringer

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jignesh Shah 2010-05-28 17:41:02 Re: cannot use column references in default expression?
Previous Message Nilesh Govindarajan 2010-05-28 17:27:55 Re: cannot use column references in default expression?