Re: [HACKERS] A small type extension example for the contrib directory (fwd)

Поиск
Список
Период
Сортировка
От Brett McCormick
Тема Re: [HACKERS] A small type extension example for the contrib directory (fwd)
Дата
Msg-id 199801251521.HAA28964@abraxas.scene.com
обсуждение исходный текст
Ответ на A small type extension example for the contrib directory (fwd)  (The Hermit Hacker <scrappy@hub.org>)
Список pgsql-hackers
I think it's great for the distribution!  speaking of which, I've
written some more datetime routines which I think are pretty basic.
One just returns the datetime as the number of seconds since the epoch
(why wasn't that possible?) and the other is an interface to the
strftime function call, to custom format date strings...  what should
the function names be called?  right now i've got datetime2seconds &
strfdatetime..  any other suggestions?  and where should I submit the
code?

On Sun, 25 January 1998, at 03:12:09, The Hermit Hacker wrote:

> 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@hub.org           secondary: scrappy@{freebsd|postgresql}.org
>
> ---------- Forwarded message ----------
> Date: Sun, 11 Jan 1998 21:24:40 +0100 (CET)
> From: Tom I Helbekkmo <tih@Hamartun.Priv.NO>
> To: The Hermit Hacker <scrappy@hub.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"

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Brett McCormick
Дата:
Сообщение: user defined functions with array arguments
Следующее
От: Peter T Mount
Дата:
Сообщение: Re: [HACKERS] A small type extension example for the contrib directory (fwd)