Skip site navigation (1) Skip section navigation (2)

A small type extension example for the contrib directory (fwd)

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: A small type extension example for the contrib directory (fwd)
Date: 1998-01-25 07:12:09
Message-ID: Pine.BSF.3.96.980125031048.28536d-100000@thelab.hub.org (view raw or flat)
Thread:
Lists: pgsql-hackers
Hi...

	I added this to the contrib directory for the server,  but am
wondering if anyone feels that this just might be useful as a "normal"
datatype, instead of just in the contrib directory...

Marc G. Fournier                                
Systems Administrator @ hub.org 
primary: scrappy(at)hub(dot)org           secondary: scrappy(at){freebsd|postgresql}.org 

---------- Forwarded message ----------
Date: Sun, 11 Jan 1998 21:24:40 +0100 (CET)
From: Tom I Helbekkmo <tih(at)Hamartun(dot)Priv(dot)NO>
To: The Hermit Hacker <scrappy(at)hub(dot)org>
Subject: A small type extension example for the contrib directory

Hi!

I figured the accompanying code might fit well in the contrib
directory.  I don't know who to send it to, though, so I'm just
sending it to you.  :-)  From the README:

| PostgreSQL type extensions for IP and MAC addresses.
| 
| I needed to record IP and MAC level ethernet addresses in a data
| base, and I really didn't want to store them as plain strings, with
| no enforced error checking, so I put together the accompanying code
| as my first experiment with adding a data type to PostgreSQL.  I
| then thought that this might be useful to others, both directly and
| as a very simple example of how to do this sort of thing, so here
| it is, in the hope that it will be useful.

-tih
-- 
Popularity is the hallmark of mediocrity.  --Niles Crane, "Frasier"

Responses

pgsql-hackers by date

Next:From: Tom I HelbekkmoDate: 1998-01-25 09:20:49
Subject: Re: [HACKERS] A small type extension example for the contrib directory (fwd)
Previous:From: Jan VicherekDate: 1998-01-25 06:00:59
Subject: extension to SQL to access TIDs from indices

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group