Is PREPARE of ecpglib thread safe? - Mailing list pgsql-hackers

From Matsumura, Ryo
Subject Is PREPARE of ecpglib thread safe?
Date
Msg-id 03040DFF97E6E54E88D3BFEE5F5480F737AC390D@G01JPEXMBYT04
Whole thread Raw
Responses Re: Is PREPARE of ecpglib thread safe?
List pgsql-hackers
Hi

I'm afraid that PREPARE of ecpglib is not thread safe.
The following global variables are modified without any locking system.
Is it unnecessary worry?

  [interfaces/ecpg/ecpglib/prepare.c]
  static int  nextStmtID = 1;
  static stmtCacheEntry *stmtCacheEntries = NULL;
  static struct declared_statement *g_declared_list;

Regards
Ryo Matsumura



pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: why doesn't DestroyPartitionDirectory hash_destroy?
Next
From: Kyotaro HORIGUCHI
Date:
Subject: Re: Fix handling of unlogged tables in FOR ALL TABLES publications