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 connection is established, 
however. It sounds like that's what you want. Do "SELECT pg_backend_pid()" to 
get the PID of the backend process serving your connection.

That and other stat functions are documented here: 
http://www.postgresql.org/docs/current/static/monitoring-stats.html

--
Alex Brasetvik

-- 
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