Re: [HACKERS] Re: hackers-digest V1 #1013 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Re: hackers-digest V1 #1013
Date
Msg-id 25169.908034114@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Re: hackers-digest V1 #1013  (darcy@druid.net (D'Arcy J.M. Cain))
Responses Re: [HACKERS] Re: hackers-digest V1 #1013  (darcy@druid.net (D'Arcy J.M. Cain))
List pgsql-hackers
darcy@druid.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

pgsql-hackers by date:

Previous
From: "Cary B. O'Brien"
Date:
Subject: Bug and Patch for dump/restore of varchars
Next
From: darcy@druid.net (D'Arcy J.M. Cain)
Date:
Subject: Permissions not working?