Re: question

From: Richard Huxton <dev(at)archonet(dot)com>
To: Alexandr S <sasha(at)in(dot)crimea(dot)ua>, pgsql-general(at)postgresql(dot)org
Subject: Re: question
Date: 2003-11-05 10:33:09
Message-ID: 200311051033.09272.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday 04 November 2003 16:50, Alexandr S wrote:
> Hi
> There is question. I have column name_my varchar (not array) in table1,
> and column name_my_ref varchar[] (array) in other table2. I want set
> Foreign Key on name_my_ref and every element in the same row of array
> must match any element in name_my. How can I do this?

You'll have to write your own trigger functions AFAIK.

It looks to me like you want another table, rather than arrays here.
--
Richard Huxton
Archonet Ltd

In response to

  • question at 2003-11-04 16:50:43 from Alexandr S

Browse pgsql-general by date

  From Date Subject
Next Message Rob Fielding 2003-11-05 10:46:10 Re: select/update performance?
Previous Message Richard Huxton 2003-11-05 10:31:58 Re: select/update performance?