Re: Interfaces that support cursors - Mailing list pgsql-general

From Jonathan Bartlett
Subject Re: Interfaces that support cursors
Date
Msg-id Pine.GSU.4.44.0310101124100.13045-100000@eskimo.com
Whole thread Raw
In response to Re: Interfaces that support cursors  (Network Administrator <netadmin@vcsn.com>)
Responses Re: Interfaces that support cursors
List pgsql-general
> Ok, I did see the autocommit flag setting in DBD:Pg when I starting reading up
> on the DBI/DBD interfacing methods so I guess I could recode for that.  However,
> how do you "maintain" the current transaction open if your script is writing
> pages to the web.  Even in mod_perl I think that there is a commit after the
> script ends, no?

Be careful you don't waste resources by leaving transactions open forever!

You can use something like PersistentPerl to make sure the script doesn't
terminate, but to get the behavior you're looking for you could only have
one script open at a time.  You could also do master/worker scripts
communicating through sockets to keep the transaction open.

Jon


>
> --
> Keith C. Perry
> Director of Networks & Applications
> VCSN, Inc.
> http://vcsn.com
>
> ____________________________________
> This email account is being host by:
> VCSN, Inc : http://vcsn.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faqs/FAQ.html
>


pgsql-general by date:

Previous
From: Network Administrator
Date:
Subject: Re: Interfaces that support cursors
Next
From: CSN
Date:
Subject: Re: int1? types?