pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedquick ECPG doco change
3+ messages / 2 participants
[nested] [flat]
* quick ECPG doco change
@ 2003-11-19 00:00 Philip Yarra <philip@utiba.com>
0 siblings, 2 replies; 3+ messages in thread
From: Philip Yarra @ 2003-11-19 00:00 UTC (permalink / raw)
To: pgsql-interfaces
Hi, this doco patch is a quick one to add explicit mention of the need for the
AT clause in threaded ECPG applications. Does this sound okay?
Bruce, yes, I do intend to contribute more than this, but at least this will
stop some confusion in the meantime.
Regards, Philip Yarra.
Index: ecpg.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ecpg.sgml,v
retrieving revision 1.54
diff -c -r1.54 ecpg.sgml
*** ecpg.sgml 12 Nov 2003 22:47:47 -0000 1.54
--- ecpg.sgml 18 Nov 2003 23:20:51 -0000
***************
*** 353,358 ****
--- 353,365 ----
</programlisting>
This option is particularly suitable if the application needs to
use several connections in mixed order.
+ </para>
+
+ <para>
+ If your application uses multiple threads of execution, they cannot
share a
+ connection concurrently. You must either explicitly control access to
the connection
+ (using mutexes) or use a connection for each thread. If each thread
uses its own connection,
+ you will need to use the AT clause to specify which connection the
thread will use.
</para>
<para>
-------------------------------------------------------
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: quick ECPG doco change
@ 2003-11-30 03:34 Bruce Momjian <pgman@candle.pha.pa.us>
parent: Philip Yarra <philip@utiba.com>
1 sibling, 0 replies; 3+ messages in thread
From: Bruce Momjian @ 2003-11-30 03:34 UTC (permalink / raw)
To: Philip Yarra <philip@utiba.com>; +Cc: pgsql-interfaces
Your patch has been added to the PostgreSQL unapplied patches list at:
http://momjian.postgresql.org/cgi-bin/pgpatches
I will try to apply it within the next 48 hours.
---------------------------------------------------------------------------
Philip Yarra wrote:
> Hi, this doco patch is a quick one to add explicit mention of the need for the
> AT clause in threaded ECPG applications. Does this sound okay?
>
> Bruce, yes, I do intend to contribute more than this, but at least this will
> stop some confusion in the meantime.
>
> Regards, Philip Yarra.
>
>
> Index: ecpg.sgml
> ===================================================================
> RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ecpg.sgml,v
> retrieving revision 1.54
> diff -c -r1.54 ecpg.sgml
> *** ecpg.sgml 12 Nov 2003 22:47:47 -0000 1.54
> --- ecpg.sgml 18 Nov 2003 23:20:51 -0000
> ***************
> *** 353,358 ****
> --- 353,365 ----
> </programlisting>
> This option is particularly suitable if the application needs to
> use several connections in mixed order.
> + </para>
> +
> + <para>
> + If your application uses multiple threads of execution, they cannot
> share a
> + connection concurrently. You must either explicitly control access to
> the connection
> + (using mutexes) or use a connection for each thread. If each thread
> uses its own connection,
> + you will need to use the AT clause to specify which connection the
> thread will use.
> </para>
>
> <para>
>
> -------------------------------------------------------
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: quick ECPG doco change
@ 2003-12-01 22:36 Bruce Momjian <pgman@candle.pha.pa.us>
parent: Philip Yarra <philip@utiba.com>
1 sibling, 0 replies; 3+ messages in thread
From: Bruce Momjian @ 2003-12-01 22:36 UTC (permalink / raw)
To: Philip Yarra <philip@utiba.com>; +Cc: pgsql-interfaces
Patch applied. Thanks.
---------------------------------------------------------------------------
Philip Yarra wrote:
> Hi, this doco patch is a quick one to add explicit mention of the need for the
> AT clause in threaded ECPG applications. Does this sound okay?
>
> Bruce, yes, I do intend to contribute more than this, but at least this will
> stop some confusion in the meantime.
>
> Regards, Philip Yarra.
>
>
> Index: ecpg.sgml
> ===================================================================
> RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ecpg.sgml,v
> retrieving revision 1.54
> diff -c -r1.54 ecpg.sgml
> *** ecpg.sgml 12 Nov 2003 22:47:47 -0000 1.54
> --- ecpg.sgml 18 Nov 2003 23:20:51 -0000
> ***************
> *** 353,358 ****
> --- 353,365 ----
> </programlisting>
> This option is particularly suitable if the application needs to
> use several connections in mixed order.
> + </para>
> +
> + <para>
> + If your application uses multiple threads of execution, they cannot
> share a
> + connection concurrently. You must either explicitly control access to
> the connection
> + (using mutexes) or use a connection for each thread. If each thread
> uses its own connection,
> + you will need to use the AT clause to specify which connection the
> thread will use.
> </para>
>
> <para>
>
> -------------------------------------------------------
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2003-12-01 22:36 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-19 00:00 quick ECPG doco change Philip Yarra <philip@utiba.com>
2003-11-30 03:34 ` Bruce Momjian <pgman@candle.pha.pa.us>
2003-12-01 22:36 ` Bruce Momjian <pgman@candle.pha.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox