From: | Maximilian Tyrtania <mty(at)fischerappelt(dot)de> |
---|---|
To: | PG Newbie List <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: Using column references in default expression |
Date: | 2007-09-06 09:06:47 |
Message-ID: | C3058FC7.294BC%mty@fischerappelt.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Oliver Elphick was kind enough to tell me about using function results as
default values offlist. That was what I was looking for.
Thanks again,
Max
Maximilian Tyrtania | IT-Entwickler
Mty(at)fischerAppelt(dot)de
fischerAppelt Kommunikation GmbH
Friedichstr. 149 | D-10117 Berlin | Germany
Tel. ++49-30-726146-728 | Fax ++49-30-726146-710
www.fischerAppelt.de
>
> Hi there,
>
> I'm in the process of moving a rather large OpenBase database to PG 8.2.3.
>
> In Openbase it was allowed to use column references in default expression,
> which seems to be forbidden in PG.
>
> You know, like that:
>
> create table Mitarbeiter_Benutzergruppen (
> _rowid longlong PRIMARY KEY DEFAULT nextval('serial') ,
> Mitarbeiter_id longlong index,
> Benutzergruppe_id longlong INDEX ,
> Unique_id varchar(1023) INDEX derived Benutzergruppe_id+':'+Mitarbeiter_id
> )
From | Date | Subject | |
---|---|---|---|
Next Message | Brooks, Stephen | 2007-09-06 10:45:17 | Storing GI Data in Postgres |
Previous Message | Maximilian Tyrtania | 2007-09-05 14:43:16 | Using column references in default expression |