Re: RE in where

From: Patrick Nelson <pnelson(at)neatech(dot)com>
To: "PostgreSQL List (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: RE in where
Date: 2003-02-17 21:49:03
Message-ID: 4165C48DE9A0D211B6400800095C585F172F53@WASHINGTON
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Patrick Nelson wrote:
----------------->>>>
Ran a query that I run periodically and it no longer works. It looks like:

SELECT * FROM hosts WHERE host ~ '^61.216.';

However, now I get an error:

ERROR: Unable to identify an operator '~' for types 'inet' and '"unknown"'
You will have to retype this query using an explicit cast

Anyone know what I've got going that is wrong?
----------------->>>>
More info:

Oh this is v7.3.1-1PGDG running on RH73 (server) and RH72 (clients)

This seems to be only with the inet data type. The other data types I try
with the ~ (or ~~) work fine.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2003-02-17 21:56:58 Re: How do people do schema upgrades?
Previous Message John Edstrom 2003-02-17 21:45:21 Re: Creating index does not make any change in query plan.