Re: [HACKERS] cidr - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] cidr
Date
Msg-id 199808112059.QAA27850@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] cidr  (darcy@druid.net (D'Arcy J.M. Cain))
List pgsql-hackers
> Thus spake Bruce Momjian
> > > I do like the idea of using attypmod to define the form of the type.
> > > I assume we can use that to determine the output format, that is, use
> > > it to effectively apply one of the functions to it.  That makes for
> > > a clean use of the type.
> >
> > OK.  Sounds good to me.  The only problem is display.  If we don't
> > indicate whether it is a cidr or host/netmask on column creation or
> > insertion, how do we display it so it makes sense?  Always cidr?
>
> Well, I guess we just decide on a default format if it is not defined.
> I think the default should be display as cidr (x.x.x.x/y) except omit
> the mask length if it is 32 (or -1 if we go with that usage.)  Perhaps
> make one of the defined types always display cidr even in thos special
> cases.

Where are we with this?  I think Harouth took this on.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Indexes bug
Next
From: darcy@druid.net (D'Arcy J.M. Cain)
Date:
Subject: Table permissions problem