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 14 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 07:42 PM

Craig Ringer wrote:
> I'm actually using a dummy header (just an empty file) for libintl.h . 
> None of the involved module code actually uses anything from libintl, 
> neither directly nor via any inlines/macros from postgresql's headers. 
> I'm not even sure PostgreSQL needs to include the header in its own 
> headers at all; it might be fine being included by the .c files. This 
> shouldn't make any difference.

There are other files (such as netdb.h) which are also missing.  Do I 
also need blank placeholder files for those to compile with VC++?  It 
seems odd that they can compile PostgreSQL with Visual Studio (according 
to Magnus, anyway) without several of the unix headers it depends on... 
  and if they do, why don't they have some #ifdefs to check whether it's 
building for windows and not include them if it is?

> - Is this with the original 8.3.1 binaries or custom ones built with 
> MinGW and with NLS disabled?

The PostgreSQL binaries are the ones from the Windows installer.

> - Does it crash with the same error message & error code?

I don't get an error message per se...  The log file shows no errors, 
but the query window I'm using (in pgadmin) loses its connection and 
Visual Studio's just-in-time debugger pops up asking if I want to debug 
postgres.exe... but if I say yes, it says it can't attach to the 
process.  The crash is the same every time.

> - Are you testing with the source file I sent (that I know works) or 
> with modified sources based on your original example?

I've tested both your file and mine, compiled with MinGW; both crash 
every time I try any function.

- 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 19:41:52 CST 2008.