[GENERAL] Is is safe to use SPI in multiple threads?

2016-12-09 Thread Qiu Xiafei
Hi, buddies! I'm new to PG and want to implement my domain-specific system based on PG. I wish to arrange my data as several tables in database and translate my DSL into SQL statements for query. Since one DSL statement may be mapped to several SQL statements, it's better to push the DSL server as

Re: [GENERAL] Is is safe to use SPI in multiple threads?

2016-12-13 Thread Qiu Xiafei
orker for incoming sessions and to launch a new bg worker to handle the session when it comes? On Saturday, December 10, 2016, Michael Paquier wrote: > On Fri, Dec 09, 2016 at 02:37:58PM -0800, Andres Freund wrote: > > On 2016-12-09 16:52:05 +0800, Qiu Xiafei wrote: > > > 1. Is