Re: array in a reference

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Ries van Twisk <ries(at)jongert(dot)nl>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: array in a reference
Date: 2003-05-07 15:53:58
Message-ID: 20030507085300.R26747-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, 7 May 2003, Ries van Twisk wrote:

>
> Hey Guys,
>
> I was just wondering if it is possible to use a REFERENCE in a array like
> this below:
>
> CREATE TABLE t0 {
> id SERIAL,
> value TEXT
> }
>
> CREATE TABLE t1 {
> id SERIAL,
> t0id INTEGER[] REFERENCES t0(id) -- <<<< Is this possible????

Not in this case, it's going to want to compare the entire array to the
id (and will probably fail saying that there's no = operator for _int4 and
int4).

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message mdc 2003-05-07 15:56:09 help database corruption
Previous Message Stephan Szabo 2003-05-07 15:52:36 Re: Date Anomaly??