Re: [sqlalchemy] obtaining pid of forked process

2010-02-12 Thread Alex Brasetvik
On Feb 11, 2010, at 18:58 , Faheem Mitha wrote: sqlalchemy forks a process when it calls the db No, it does not. 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. PostgreSQL forks a new backend process when a

[sqlalchemy] obtaining pid of forked process

2010-02-11 Thread Faheem Mitha
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

Re: [sqlalchemy] obtaining pid of forked process

2010-02-11 Thread Michael Bayer
Faheem Mitha wrote: 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(...) um, what ? there's no forking in SQLAlchemy. My question - is it possible to obtain the