From: Tom Lane <tgl@sss.pgh.pa.us>
To: ABBAS SHAKEEL <shakeel.abbas.qau@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: inet Operator Does not exists
Date: Sat, 08 May 2010 20:44:15 -0400
Message-ID: <18127.1273365855@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTilf13Vk_bnulsFUqJPU0_w1tXUoEh-bHnEiuDSG@mail.gmail.com>
References: <AANLkTilf13Vk_bnulsFUqJPU0_w1tXUoEh-bHnEiuDSG@mail.gmail.com>
ABBAS SHAKEEL <shakeel.abbas.qau@gmail.com> writes:
> CREATE FUNCTION inet_to_bigint(inet) RETURNS bigint AS $$
> SELECT $1 - inet '0.0.0.0'
> $$ LANGUAGE SQL;
> Now above querry works fine for 8.3 but not for 8.1. I was wondering if
> there is some thing wrong from my side.
Per the 8.2 release notes:
* Add convenient arithmetic operations on INET/CIDR values (Stephen R. van den Berg)
The new operators are & (and), | (or), ~ (not), inet + int8, inet - int8, and inet - inet.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, shakeel.abbas.qau@gmail.com
Subject: Re: inet Operator Does not exists
In-Reply-To: <18127.1273365855@sss.pgh.pa.us>
* 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