Re: Aim of --enable-thread-safety ?
От | Bruce Momjian |
---|---|
Тема | Re: Aim of --enable-thread-safety ? |
Дата | |
Msg-id | 200607101739.k6AHdi406550@momjian.us обсуждение исходный текст |
Ответ на | Re: Aim of --enable-thread-safety ? (Christopher Browne <cbbrowne@acm.org>) |
Ответы |
Re: Aim of --enable-thread-safety ?
|
Список | pgsql-general |
Christopher Browne wrote: > Alexandra.Dante@bull.net (DANTE Alexandra) wrote: > > I wonder if this compilation option is really taken into account as > > PostgreSQL is not multi-threading but multi-processing. > > I have read that without this option, the libpq won't know anything > > about threads and may indeed have problems, but could you explain me > > how this option runs ? > > > It is not clear for me the aim of this option in an multi-processing > > environment... > > Is it possible to force PostgreSQL to be multi-threaded ? > > This option is all about allowing you to have multi-threaded *client* > applications. > > That is, applications that many have multiple threads where threads > can hold onto database connections. Uh, the documentation is very clear on the purpose of this option: <term><option>--enable-thread-safety</option></term> <listitem> <para> Make the client libraries thread-safe. This allows concurrent threads in <application>libpq</application> and <application>ECPG</application> programs to safely control their private connection handles. This option requires adequate threading support in your operating system. Is there something unclear about it? -- Bruce Momjian bruce@momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +
В списке pgsql-general по дате отправления: