Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNQjc-0000Me-U1 for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jul 2016 20:26:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bNQjc-0000tb-7p for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jul 2016 20:26:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bNQjb-0000se-1L for pgsql-hackers@postgresql.org; Wed, 13 Jul 2016 20:26:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bNQjX-0008Sx-VT for pgsql-hackers@postgresql.org; Wed, 13 Jul 2016 20:26:18 +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 u6DKQCbS000573; Wed, 13 Jul 2016 16:26:12 -0400 From: Tom Lane To: Fabien COELHO cc: Robert Haas , Pavel Stehule , PostgreSQL Developers Subject: Re: pgbench - allow to store select results into variables In-reply-to: References: Comments: In-reply-to Fabien COELHO message dated "Wed, 13 Jul 2016 22:16:25 +0200" Date: Wed, 13 Jul 2016 16:26:12 -0400 Message-ID: <572.1468441572@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) 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 Fabien COELHO writes: > Sending a batch of requests is a feature of libpq which is accessible > through pgbench by using "\;", although the fact is not documented. It > makes sense for a client to send independent queries together so as to > reduce latency. You're putting an awful lot of weight on an unsupported assertion about latency. If a user cares about that, why would she not simply merge the commands into "SELECT 1, 2, 3 \into one two three" ? And I still say that what you're proposing might be easy right now, but it might also be next door to impossible in a refactored implementation. I don't think we should go there on the basis of a weak argument about latency. \into should retrieve data only from the last PGresult. 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