Re: cidr question (resent) - Mailing list pgsql-sql

From Alex Pilosov
Subject Re: cidr question (resent)
Date
Msg-id Pine.BSO.4.10.10112122236180.24804-100000@spider.pilosoft.com
Whole thread Raw
In response to cidr question (resent)  ("Mir S Islam" <mislam@mindspring.com>)
List pgsql-sql
On Wed, 12 Dec 2001, Mir S Islam wrote:

> should not the command
> DELETE from ip_space where ip = '11.0.1.0/24'::cidr
> delete last two rows ? But it does not delete anything. Basically I would
> like to be able to delete a whole range or block of ip/network addresses.

You need:
DELETE from ip_space where ip << '11.0.1.0/24'::cidr

<< is 'belongs to'. 

-alex



pgsql-sql by date:

Previous
From: "Mir S Islam"
Date:
Subject: cidr question (resent)
Next
From: David Stanaway
Date:
Subject: Re: cidr question (resent)