Re: COMPUTED BY fields or equivalent? - Mailing list pgsql-novice

From Tom Lane
Subject Re: COMPUTED BY fields or equivalent?
Date
Msg-id 13551.1070724831@sss.pgh.pa.us
Whole thread Raw
In response to COMPUTED BY fields or equivalent?  (Paul Ganainm <paulsnewsgroups@hotmail.com>)
List pgsql-novice
Paul Ganainm <paulsnewsgroups@hotmail.com> writes:
> I use Interbase (starting on PostgreSQL) which has a concept of

> CREATE TABLE My_Table
> (
>   First_Name VARCHAR(15),
>   Last_Name  VARCHAR(15),
>   Full_Name  VARCHAR(30) COMPUTED BY(First_Name || ' ' || Last_Name)
> }

You could do that with a view (if you don't want the derived field to be
physically stored on disk) or with a trigger (if you do).

            regards, tom lane

pgsql-novice by date:

Previous
From: Paul Ganainm
Date:
Subject: COMPUTED BY fields or equivalent?
Next
From: Bruce Momjian
Date:
Subject: Re: sql command to drop everything