From: | Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Larry Rosenman <ler(at)lerctr(dot)org>, pgsql-hackers(at)hub(dot)org |
Subject: | Re: mac.c |
Date: | 2000-08-21 04:24:25 |
Message-ID: | 39A0AEF9.7663FDF@alumni.caltech.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> > o Two new functions, trunc(macaddr) and text(macaddr), where the former
> > returns the mac address with the low (non-manufacturer) fields zeroed
> > out, and the latter converts to a text string. The text conversion is
> > nice because capabilities such as LIKE can be used transparently :) Will
> > need to add macaddr(text) for symmetry.
> A cast shouldn't alter the value of the, er, value. This is like
> text(55) returning 'fifty-five'. What if I want to use substr() on the
> macaddr?
?? Just go ahead and use it! :)
There isn't anything new here, other than having the feature available
for macaddr as it is for other data types.
- Thomas
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-08-21 05:05:01 | BIT/BIT VARYING status |
Previous Message | suchet singh khalsa | 2000-08-21 02:57:59 | postmaster locking issues |