Hi,

sqlalchemy forks a process when it calls the db (in my case PostgreSQL, but I don't think it matters) using, for example

from sqlalchemy.sql import text
s = text(...)

My question - is it possible to obtain the pid of this process at the python level in some fashion? The reason for this is that I want to plot a memory graph of the postgresql process, so it is handy to have the pid for this. I'm using Linux (Debian lenny) with pg 8.4.2 and sqla 0.5.7.

Please cc me on any reply. Thanks.
                                                          Regards, Faheem.

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to