Re: cidr data type question

From: Harald Fuchs <hari(dot)fuchs(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: cidr data type question
Date: 2009-11-02 12:29:49
Message-ID: pumy35xg76.fsf@srv.protecting.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In article <1257149236(dot)3426(dot)9(dot)camel(at)localhost>,
Vasiliy G Tolstov <v(dot)tolstov(at)selfip(dot)ru> writes:

> Hello.
> I have table with cidr data type column (table is white/black list of
> networks).

> Does it possible to query - is the some address contains in any cidr
> network in this table? (for all networks in the table do "contains or
> equals"
> http://www.postgresql.org/docs/8.4/interactive/functions-net.html
> )

If you mess with IP addresses, you should have a look at the ip4r
contrib module. Since I discovered it, I've never looked back at
cidr/inet.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vasiliy G Tolstov 2009-11-02 12:34:46 Re: cidr data type question
Previous Message Jasen Betts 2009-11-02 11:39:29 Re: Absolute value of intervals