logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Psycopg/ZPsycopg open connection problem...: msg#00013

Subject: Re: Psycopg/ZPsycopg open connection problem...
Stefan,

thank you for your file. 

We are currently working with a modified version of the product, provided by 
Federico, that has been reworked in order to remove some possible defects.

We have been able to see two different problems:

- the first, which was generates an "idle in transaction" problem, seems tied 
to the way Zope manages abort during error recovery. Basically, we had a SQL 
method that was invoked in the standard error message. This, due to Zope, 
leaves a transaction in the middle;

- the second generates lots of "idle in transaction" connections to postgres. 
This seems a much stranger bug. We have two potential causes:

        - the cache management. Perhaps the connection object is cached and it 
is not 
correctly removed from the cache;

        - the use of fetchmany. In our SQL code we use a limit clause, that 
generates 
a call to the fetchmany. Is this lefting behind some connection ?

We will investigate further.

Best regards.

Paolo


> Paolo,
>
> I have attached an alternative version of db.py that does not eat
> exceptions and logs its operations to the event.log. You may want to use it
> for debugging or even on the production site. No warranties of any kind ;-)
>
> Stefan
>
> At 02.02.2004 13:11 +0100, Paolo Bizzarri wrote:
> >Hi everyone,
> >
> >we have been able to reproduce the bug in Psycopg/ZPsycopg, so that if we
> > run a certain script we consistely obtain a connection to Postgresql
> > "idle in transaction".
>
> --
> ... a standard for copy protection is as premature as a standard
> for teleportation.                  Edward W. Felten, March 2002

-- 
Paolo Bizzarri - President - Icube S.r.l.
Address:        Via Ridolfi 15 - 56124 Pisa (PI), Italy
E-mail: p.bizzarri-QB8vYuOG93c@xxxxxxxxxxxxxxxx Web:    http://www.icube.it
Phone:  (+39) 050 97 02 07      Fax:    (+39) 050 31 36 588


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe