Skip to content

Commit 8f61184

Browse files
committed
Hi, this doco patch is a quick one to add explicit mention of the need
for the AT clause in threaded ECPG applications. Philip Yarra
1 parent 8c4af96 commit 8f61184

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/src/sgml/ecpg.sgml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.56 2003/11/29 19:51:36 pgsql Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.57 2003/12/01 22:36:40 momjian Exp $
33
-->
44

55
<chapter id="ecpg">
@@ -353,6 +353,13 @@ EXEC SQL AT <replaceable>connection-name</replaceable> SELECT ...;
353353
</programlisting>
354354
This option is particularly suitable if the application needs to
355355
use several connections in mixed order.
356+
</para>
357+
358+
<para>
359+
If your application uses multiple threads of execution, they cannot share a
360+
connection concurrently. You must either explicitly control access to the connection
361+
(using mutexes) or use a connection for each thread. If each thread uses its own connection,
362+
you will need to use the AT clause to specify which connection the thread will use.
356363
</para>
357364

358365
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy