pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Casson <rob.casson@gmail.com>
To: pgsql-sql@postgresql.org
Subject: searching cidr/inet arrays
Date: Mon, 25 Apr 2005 14:46:37 -0400
Message-ID: <fddc0c5705042511464f94be68@mail.gmail.com> (raw)

i'm having trouble figuring out how to search in inet arrays....its
been a long time since i used postgres array support, so i may just be
bone-headed......

how can i determine if a given ip address is contained in the subnet
declaration inside an array?

    {134.53.25.0/24,134.53.0.0/16}
    {134.53.24.0/24}

i'd like to see which rows match an ip of, say, 134.53.24.2.....

thanks in advance, and sorry if this is a faq....i've googled
site:archives.postgresql.org, but haven't found my solution.....



view thread (2+ messages)  latest in thread

Message-ID: <fddc0c5705042511464f94be68@mail.gmail.com>
Permalink:  ../fddc0c5705042511464f94be68@mail.gmail.com/
Also on:    postgresql.org/message-id/fddc0c5705042511464f94be68@mail.gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rob.casson@gmail.com
  Subject: Re: searching cidr/inet arrays
  In-Reply-To: <fddc0c5705042511464f94be68@mail.gmail.com>

* 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