Re: [HACKERS] SOS, help me please, one problem towards the postgresql developement on windows

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: shieldy <shieldly(at)gmail(dot)com>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: [HACKERS] SOS, help me please, one problem towards the postgresql developement on windows
Date: 2007-05-01 14:40:14
Message-ID: 4637514E.1040806@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


[removing -hackers, as this question really doesn't seem to belong there]

shieldy wrote:
> thankyou very much.
> but the method, you said, is adding a alias name, so it can not work.
> and as i need to add many functions likes this, so the best way is to
> compile the whole postgresql. eventhough, i did, it didnot work, so i
> am puzzled, can add a function directly in the source file, and
> compile it, can it work??
> BTW: I have just seach the source for addingthe built-in function, and
> found it need to add declaration in the include geo_decls.h, and add
> the function in the geo_ops.c. can it not be enough??
>
>
>
>

Why on earth are you not just creating your functions as a loadable C
module? Unless you are doing something strange there seems little need
for you to be taking the approach you are taking. The contrib directory
has some examples of how to do this. PostgreSQL is designed to be
extensible, but you are apparently ignoring the extensibility features.

cheers

andrew

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2007-05-01 14:43:15 Re: Processing a work queue
Previous Message novnov 2007-05-01 14:38:13 Re: IF function?

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2007-05-01 14:52:25 Re: Feature freeze progress report
Previous Message Martijn van Oosterhout 2007-05-01 12:33:11 Re: [HACKERS] SOS, help me please, one problem towards the postgresql developement on windows