Skip site navigation (1) Skip section navigation (2)

Re: deallocating prepared statements

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: "Haszlakiewicz, Eric" <EHASZLA(at)transunion(dot)com>
Cc: Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: deallocating prepared statements
Date: 2008-12-12 11:53:14
Message-ID: 20081212115314.GA24477@feivel.credativ.de (view raw or flat)
Thread:
Lists: pgsql-interfaces
[Sorry, I seem to not have answered yet, I thought I had. ]

On Wed, Dec 03, 2008 at 11:38:27AM -0600, Haszlakiewicz, Eric wrote:
> So why is preparing a statement in ecpg different from preparing one
> with libpq?  Isn't the actual prepare done on the server?

The actual prepare yes, but there are internal ecpg structures involved too,
e.g. it needs the connection involved. Without getting the connection
information there is no way to deallocate the statement.

Michael

-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!

In response to

pgsql-interfaces by date

Next:From: Michael MeskesDate: 2008-12-14 12:26:46
Subject: Re: gcc _Decimal types & ecpg
Previous:From: Bosco RamaDate: 2008-12-12 05:22:03
Subject: gcc _Decimal types & ecpg

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group