[postgis-devel] does unparse_WKT thread safe?

Paul Ramsey pramsey at cleverelephant.ca
Wed Jan 13 07:14:37 PST 2010


The function isn't thread-safe, but PostgreSQL doesn't use threads. It
uses a multi-process design, not a multi-thread design.

P.

2010/1/13 xie_jiong <xie_jiong at 163.com>:
> Hi all,
>
>    If two session execute following sql at same time, will postgis cause
> error?
>
>    select st_astext(shape) from geotable;
>
>    I just read the code and found that the funtion unparse_WKT uses static
> var out_start and out_pos, so if two session involk it in parallel, and I
> think the static vars will conflict. Is it true?
>
>    Thanks!
>
> Jiong
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>
>



More information about the postgis-devel mailing list