inet type and network() - Mailing list pgsql-general

From Daniel J. Kressin
Subject inet type and network()
Date
Msg-id 3AB03101.DA4CE625@globalcrossing.com
Whole thread Raw
Responses Re: inet type and network()
List pgsql-general
My table contains the following rows in a column of type inet:
     ip
 -------------
 10.24.4.0/22
 10.24.4.10/22
 10.24.5.0/22
 10.24.5.5/22

When I do a select, the rows come up as:
     ip
 --------------
 10.24.4/22
 10.24.4.10/22
 10.24.5/22
 10.24.5.5/22

The .0s get dropped.  Is there a way to force it to leave the .0s
attached?
--
Dan
 ____    Kressin   ____   .-----------------------------------.
/___ \____________/ __ \  | Unix SysAdmin                     |
    \  \    /      /  \ | | Global Crossing                   |
 ___/ __\/\/rench_ \__/ | | dkressin@globalcrossing.com       |
\____/            \____/  | http://www.vib.org/wrench/        |
                          `-----------------------------------'

pgsql-general by date:

Previous
From: "keith"
Date:
Subject: ODBC
Next
From: Tom Lane
Date:
Subject: Re: inet type and network()