From: | Jasen Betts <jasen(at)xnet(dot)co(dot)nz> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Libpq question |
Date: | 2012-05-21 10:13:03 |
Message-ID: | jpd4ff$o60$1@reversiblemaps.ath.cx |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 2012-05-16, John Townsend <jtownsend(at)advancedformulas(dot)com> wrote:
> *** So...the question: Is there a good reason why you might want to NOT
> use libpq.dll, and just directly access the server through direct
> function calls? ***
libpq binds you to using NUL terminated C strings, and, no doubt, other C
idioms. if you do it directly you can use the native object model of
your chosen platform instead of neding to wrap the libpq allocator in
your native object model etc... ther's probably other reasons too.
> Btw, I just compiled libpq.dll with Visual C++ 2008. The resulting
> compilation (32bit) was 109 KB as opposed to 165 KB which was downloaded
> (Enterprise site). I use C++ very little, so this is probably due to
> compiler settings / flags, or perhaps just the use of just another compiler.
It could be the difference between stripped and non-stripped. I have
not looked closely at the provided libpq.
--
⚂⚃ 100% natural
From | Date | Subject | |
---|---|---|---|
Next Message | Jasen Betts | 2012-05-21 10:24:56 | Re: varchar for loops possible? |
Previous Message | Albe Laurenz | 2012-05-21 10:03:55 | Re: odd intermittent query hanging issue |