From: | Edwin Quijada <listas_quijada(at)hotmail(dot)com> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Compiling with MinGW in windows , compile but my server down |
Date: | 2010-09-09 01:46:37 |
Message-ID: | BAY155-w4940571B5E99DB6D0287A0E3730@phx.gbl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi!!
I could compile my windows extension for Postgres but now when I try to run this extension my server goes down. I compiled using Mingw and this line
C:\mingw\bin\gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
-I "C:/Program Files/PostgreSQL/8.3/include/"
-I "C:/Program Files/PostgreSQL/8.3/include/server"
-I "C:/Program Files/PostgreSQL/8.3/include/server/port/win32"
-DEXEC_BACKEND "-I C:/Program Files/PostgreSQL/8.3/include/server/port/win32" -c pg2.c -o pg2.o
AND for linking
C:\mingw\bin\gcc -shared -o pg_server_function.dll pg2.o -L "C:\Program Files\PostgreSQL\8.3\lib" -lpostgres
This compile without errors but when I created the function and try to run I get my server down.
There is any way to debug this function to find out what cause the error ??
TIA
*-------------------------------------------------------*
*-Edwin Quijada
*-Developer DataBase
*-JQ Microsistemas
*-Soporte PostgreSQL
*-www.jqmicrosistemas.com
*-809-849-8087
*-------------------------------------------------------*
From | Date | Subject | |
---|---|---|---|
Next Message | Lazaro Ruben Garcia Martinez | 2010-09-09 02:27:54 | postgresql cluster on SAN |
Previous Message | jackassplus | 2010-09-09 00:55:56 | Re: how do i count() similar items |