[pgsql-jp: 35986] Re: SELECT文に時間がかかる

YAMANEKO/Mao yneko2 @ yamamaya.com
2005年 9月 12日 (月) 10:12:43 JST


もりもとです

> クライアントからのアクセス時にfork()で子プロセス化を行っております。
> データベースのテーブルへのコネクションはサーバシステムの初期時(親プロセス
内)に
> 作成しており、作成したコネクションを子プロセスで使いまわす、ということを
やって
> おります。

せっかく、独立した章まで立てて説明してあるので、
ドキュメントはきちんと目を通した方がよろしいかと。。

PostgreSQL 8.0.3 Documentation
27.14. Behavior in Threaded Programs
One restriction is that no two threads attempt to manipulate the same PGconn
object at the same time. In particular, you cannot issue concurrent commands
from different threads through the same connection object. (If you need to
run concurrent commands, use multiple connections.)

- YAMANEKO / Mao
http://blog.yamamaya.com/
http://yamamaya.com/




pgsql-jp メーリングリストの案内