Re: [HACKERS] Re: hackers-digest V1 #1013

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain)
Cc: pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] Re: hackers-digest V1 #1013
Date: 1998-10-10 15:41:54
Message-ID: 25169.908034114@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

darcy(at)druid(dot)net (D'Arcy J.M. Cain) writes:
> Based on the discussions we had earlier I am surprised by the
> following.

> darcy=> select '198.1.2.3/8'::inet;
> ?column?
> --------
> 198/8
> (1 row)

> I would have expected it to print what I entered.

Why? You told it to truncate the data to 8 bits, so it did. (At least,
that's my understanding of what the /n notation means, but maybe I'm
mistaken.)

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message D'Arcy J.M. Cain 1998-10-10 15:58:37 Permissions not working?
Previous Message Cary B. O'Brien 1998-10-10 15:31:35 Bug and Patch for dump/restore of varchars