[HACKERS] ecpg vs. libpq

2003-02-21 Thread Christoph Haller

I am wondering if there is any difference in performance between
using ecpg and libpq. If I understand the concept of ecpg correctly,
calls to the lecpg interface are internally converted to calls to libpq.

So there is no big difference at all. Is this right?

Regards, Christoph



---(end of broadcast)---
TIP 2: you can get off all lists at once with the unregister command
(send unregister YourEmailAddressHere to [EMAIL PROTECTED])



Re: [HACKERS] ecpg vs. libpq

2003-02-21 Thread Shridhar Daithankar
On 21 Feb 2003 at 11:26, Christoph Haller wrote:

 
 I am wondering if there is any difference in performance between
 using ecpg and libpq. If I understand the concept of ecpg correctly,
 calls to the lecpg interface are internally converted to calls to libpq.
 
 So there is no big difference at all. Is this right?

That is correct but there are some other differences.

1. Obviously ecpg is simpler to use.
2. libpq is almost thread safe. ecpg is not. It is work in progress.
3. ecpg can not be C++ in itself, libpq can be.

Just about it..

Bye
 Shridhar

--
Drew's Law of Highway Biology:  The first bug to hit a clean windshield lands 
directly in front   of your eyes.


---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster



[HACKERS] ecpg vs. libpq

2003-02-21 Thread Christoph Haller

I am wondering if there is a fundamental difference in performance
between
using embedded SQL or libpq functions in a C application. If I
understand the
documentation correctly, calls to lecpg are simply transferred to calls
to libpq.
So, the difference in performance is, if any, marginal. Is this right?

Regards, Christoph

PS Sorry if this comes twice, the local mail host seems to be in
trouble.



---(end of broadcast)---
TIP 2: you can get off all lists at once with the unregister command
(send unregister YourEmailAddressHere to [EMAIL PROTECTED])



Re: [HACKERS] ecpg vs. libpq

2003-02-21 Thread Michael Meskes
On Fri, Feb 21, 2003 at 11:26:02AM +0100, Christoph Haller wrote:
 I am wondering if there is any difference in performance between
 using ecpg and libpq. If I understand the concept of ecpg correctly,
 calls to the lecpg interface are internally converted to calls to libpq.

That's correct. There shouldn't be much of a performance penalty.

Michael
-- 
Michael Meskes
Email: [EMAIL PROTECTED]
ICQ: 179140304
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

---(end of broadcast)---
TIP 2: you can get off all lists at once with the unregister command
(send unregister YourEmailAddressHere to [EMAIL PROTECTED])