Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b53xd-0000OQ-DP for pgsql-hackers@arkaria.postgresql.org; Tue, 24 May 2016 04:28:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b53xb-00088N-RT for pgsql-hackers@arkaria.postgresql.org; Tue, 24 May 2016 04:28:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b53xZ-00086o-HT for pgsql-hackers@postgresql.org; Tue, 24 May 2016 04:28:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b53xW-00085J-Tz for pgsql-hackers@postgresql.org; Tue, 24 May 2016 04:28:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u4O4Seg3002645; Tue, 24 May 2016 00:28:40 -0400 From: Tom Lane To: Craig Ringer cc: Michael Paquier , Andres Freund , PostgreSQL Hackers , Manuel Kniep , "fujita.etsuro@lab.ntt.co.jp" Subject: Re: PATCH: Batch/pipelining support for libpq In-reply-to: References: <20160523155002.debxru4u57tqztyy@alap3.anarazel.de> Comments: In-reply-to Craig Ringer message dated "Tue, 24 May 2016 12:02:15 +0800" Date: Tue, 24 May 2016 00:28:40 -0400 Message-ID: <2644.1464064120@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Craig Ringer writes: > On 24 May 2016 at 00:00, Michael Paquier wrote: >> Did you consider the use of simple_list.c instead of introducing a new >> mimic as PGcommandQueueEntry? It would be cool avoiding adding new >> list emulations on frontends. > I'd have to extend simple_list to add a generic object version, like > struct my_list_elem > { > PG_SIMPLE_LIST_ATTRS; > mytype mycol; > myothertype myothercol; > } > Objections? That doesn't look exactly "generic". > I could add a void* version that's a simple clone of the string version, > but having to malloc both a list cell and its contents separately is > annoying. I'd be okay with a void* version, but I'm not sure about this. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers