Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: Custom C fu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 18 of 23 Topic 15452 of 17602
Post > Topic >>

Re: Custom C function - is palloc broken?

by heron@[EMAIL PROTECTED] ("Dan \"Heron\" Myers") May 5, 2008 at 08:45 PM

Craig Ringer wrote:
> And in the server log files (PG_INSTALL_DIR\data\pg_log) ?

The log files contained no indication of an error, not even an "oops, 
the server crashed" message.

> I'd be interested in confirmation that you're able to get your code 
> working when you build it with VC++ .

I did get the examples.c file to work with VC++ 2008 Professional, so I 
should be able to get the other functions I need to work.


Tom Lane wrote:
 > You need to
 > get over this concept of "Postgres is broken" and try to identify a
 > specific reason why your DLL builds are not working.

I don't think I ever said Postgres was broken.  I said Postgres was 
cra****ng.  I expressed doubt that Postgres' win32 binary was built with 
MSVC++... mostly because the website still says it was built with mingw. 
  In any case, I was mostly confused that Postgres would build their 
stuff with MSVC++ but not provide #ifndef WIN32 (or whatever) blocks 
around the stuff that can be ignored in windows.

But that's all essentially irrelevant.  In the future I will keep my 
speculation to myself lest I be accused of calling Postgres "broken".

 > I'm starting to wonder just how broken the tools you two are using
 > must be ...

If by "broken" you mean "a Windows-only compiler excluding unix-only 
headers from its include directories", then I guess Visual Studio is 
completely broken.  If by "broken" you mean "MinGW apparently can't be 
used to compile .dlls for use with Postgres", then that is also correct. 
  I don't think either set of tools is actually broken, though.

In any case, I did get the examples compiling with Visual C++ 2008 
Professional, and the resulting .dll does work in Postgres.  If I run 
into any other problems I'll be back.

Thanks,
Dan

-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 23 Posts in Topic:
Custom C function - is palloc broken?
n8thatcher@[EMAIL PROTECT  2008-05-03 21:39:04 
Re: Custom C function - is palloc broken?
craig@[EMAIL PROTECTED]   2008-05-04 23:50:26 
Re: Custom C function - is palloc broken?
craig@[EMAIL PROTECTED]   2008-05-04 23:52:41 
Re: Custom C function - is palloc broken?
heron@[EMAIL PROTECTED]   2008-05-04 13:02:49 
Re: Custom C function - is palloc broken?
craig@[EMAIL PROTECTED]   2008-05-05 05:53:27 
Re: Custom C function - is palloc broken?
magnus@[EMAIL PROTECTED]   2008-05-04 21:15:49 
Re: Custom C function - is palloc broken?
craig@[EMAIL PROTECTED]   2008-05-05 06:47:11 
Re: Custom C function - is palloc broken?
n8thatcher@[EMAIL PROTECT  2008-05-04 21:53:01 
Re: Custom C function - is palloc broken?
craig@[EMAIL PROTECTED]   2008-05-05 15:54:13 
Re: Custom C function - is palloc broken?
heron@[EMAIL PROTECTED]   2008-05-05 09:26:22 
Re: Custom C function - is palloc broken?
heron@[EMAIL PROTECTED]   2008-05-05 16:57:08 
Re: Custom C function - is palloc broken?
heron@[EMAIL PROTECTED]   2008-05-05 18:47:50 
Re: Custom C function - is palloc broken?
craig@[EMAIL PROTECTED]   2008-05-06 08:42:16 
Re: Custom C function - is palloc broken?
heron@[EMAIL PROTECTED]   2008-05-05 19:42:01 
Re: Custom C function - is palloc broken?
craig@[EMAIL PROTECTED]   2008-05-06 10:19:32 
Re: Custom C function - is palloc broken?
tgl@[EMAIL PROTECTED] (T  2008-05-05 22:32:11 
Re: Custom C function - is palloc broken?
craig@[EMAIL PROTECTED]   2008-05-06 12:02:28 
Re: Custom C function - is palloc broken?
heron@[EMAIL PROTECTED]   2008-05-05 20:45:05 
Re: Custom C function - is palloc broken?
jd@[EMAIL PROTECTED] (&q  2008-05-05 20:18:42 
Re: Custom C function - is palloc broken?
tgl@[EMAIL PROTECTED] (T  2008-05-05 22:22:43 
Re: Custom C function - is palloc broken?
magnus@[EMAIL PROTECTED]   2008-05-05 09:07:37 
Re: Custom C function - is palloc broken?
dpage@[EMAIL PROTECTED]   2008-05-06 09:46:14 
Re: Custom C function - is palloc broken?
dpage@[EMAIL PROTECTED]   2008-05-06 09:48:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 18:57:39 CST 2008.