pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Ouellet <David.Ouellet@drev.dnd.ca>
To: pgsql-sql@postgresql.org
Subject: Re: [SQL] Question about arrays
Date: Tue, 10 Aug 1999 11:16:07 -0400
Message-ID: <37B04237.B949D277@drev.dnd.ca> (raw)
References: <37AF1B85.B0463BA1@drev.dnd.ca>

Never mind, I found the answer.
For those interested, look at contrib/array it adds a whole bunch of
operators that iterates over an array.

David Ouellet

David Ouellet wrote:

> Hi,
> Is there an operator to test if a value is contained into an array?
>
> What I'm trying to do is create a function to check is a certain user
> belongs to a certain group.
> I want to check is the userid is contained in the pg_grouip.grolist
> array.
>
> How would I do that?
>
> Thanks in advance
> David Ouellet




view thread (3+ messages)

Message-ID: <37B04237.B949D277@drev.dnd.ca>
Permalink:  ../37B04237.B949D277@drev.dnd.ca/
Also on:    postgresql.org/message-id/37B04237.B949D277@drev.dnd.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: David.Ouellet@drev.dnd.ca
  Subject: Re: [SQL] Question about arrays
  In-Reply-To: <37B04237.B949D277@drev.dnd.ca>
  References: <37AF1B85.B0463BA1@drev.dnd.ca> <37B04237.B949D277@drev.dnd.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox