Re: tinyint

From: Shachar Shemesh <psql(at)shemesh(dot)biz>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: tinyint
Date: 2004-05-11 05:58:00
Message-ID: 40A06B68.2090505@shemesh.biz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gaetano Mendola wrote:

> Hi all,
> someone of you sent me an example of a new data type
> called tinyint.

Hi.

>
> I seen that is using a well directory structure just
> for compile a tinyint.c.

Yes. The idea was to have it do more than just this one type. Maybe a
bad idea, on retrospect.

>
> Is there any "empty" structure that I have to use in
> order to delivery compile my email.c or I can
> just use a single line command:
>
> gcc email.c -I. -I /usr/include/pgsql/server ....

Yes.

>
> I seen also that a library called libpgext.so
> is created.

You need to create SOME library, and you need it to be of a unique name.
Did I mention that the tinyint type was suboptimal in that respect?

> Shall I do the same ? Are guide line to use out there?

There are in the docs. Start reading from
http://www.postgresql.org/docs/7.4/static/extend.html

> Regards
> Gaetano Mendola

I sent you these sources as a base to build from. You are most welcome
to start anew if you don't like the structure.

--
Shachar Shemesh
Lingnu Open Source Consulting
http://www.lingnu.com/

In response to

  • tinyint at 2004-05-11 00:50:16 from Gaetano Mendola

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2004-05-11 06:44:53 Re: XLog: how to log?
Previous Message Tom Lane 2004-05-11 03:05:13 Re: XLog: how to log?