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

2007-05-01 Thread shieldy
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

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

2007-04-29 Thread shieldy
my postgresql source code is at c:/mingw/postgresql and instal to C:/msys/1.0/local/pgsql/ I add a function to src\backend\utils\adt\geo_ops.c as the following: *Datum box_add2(PG_FUNCTION_ARGS) { BOX *box = PG_GETARG_BOX_P(0); Point*p = PG_GETARG_POINT_P(1);* *

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

2007-04-29 Thread Martijn van Oosterhout
On Mon, Apr 30, 2007 at 01:36:36AM +0800, shieldy wrote: my postgresql source code is at c:/mingw/postgresql and instal to C:/msys/1.0/local/pgsql/ I add a function to src\backend\utils\adt\geo_ops.c as the following: A few things: - You never did a CREATE FUNCTION so ofcourse the DB doesn't

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

2007-04-29 Thread FAST PostgreSQL
I assume you are trying to create a built-in function, right? If thats the case you may want to create an entry in pg_proc (That seems to be missing). Search for box_add in the source code and you will get an idea what code needs to be added where. Rgds, Arul Shaji shieldy wrote: my