Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSJWo-00041Y-FO for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Nov 2019 11:31:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iSJWn-00076U-89 for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Nov 2019 11:31:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSJWm-00076M-TO for pgsql-bugs@lists.postgresql.org; Wed, 06 Nov 2019 11:31:09 +0000 Received: from courriel.mines-paristech.fr ([77.158.173.149] helo=antispam-1.ensmp.fr) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iSJWj-0006fC-UW for pgsql-bugs@lists.postgresql.org; Wed, 06 Nov 2019 11:31:07 +0000 Received: from smtp-4.mines-paristech.fr (smtp-4.ensmp.fr [77.158.173.143]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by antispam-1.ensmp.fr (antispam.mines-paristech.fr) with ESMTPS id EF2C35603B; Wed, 6 Nov 2019 12:31:02 +0100 (CET) Received: from lancre.paris.ensmp.fr (lancre.paris.ensmp.fr [192.168.152.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-4.mines-paristech.fr (Postfix) with ESMTPSA id DCE2B2C0174; Wed, 6 Nov 2019 12:31:02 +0100 (CET) Date: Wed, 6 Nov 2019 12:31:02 +0100 (CET) From: Fabien COELHO X-X-Sender: fabien@lancre To: alaindewit@skynet.be, PostgreSQL Bugs Subject: Re: BUG #16096: psql (non-interactive mode) SQL multi-request commands don't report all feedback ?! In-Reply-To: <16096-6744a334bbd01a04@postgresql.org> Message-ID: References: <16096-6744a334bbd01a04@postgresql.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-CLAMAV-SCAN: ok X-VRSPAM-SCORE: -100 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrgedufedruddujedgvdelucetufdoteggodetrfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvufgjkfhffgggtgesthdtredttdervdenucfhrhhomhephfgrsghivghnucevqffgnffjqfcuoegtohgvlhhhohestghrihdrvghnshhmphdrfhhrqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bonjour Alain, > When performing one INSERT SQL command in non-interactive mode I get a > feedback about the number of line inserted. OK > When performing the INSERT command SQL request following by for example a > select ; I don't get any feedback of the insert command !!?? This is because -c passes the string as ONE sql command, and for multi-statement commands psql only reports about the last one. The equivalent in interactive mode is to use \; between SQL commands. ISTM that this is the documented behavior, so it is not a bug. There is a submitted patch to change it to show all results: https://commitfest.postgresql.org/25/2096/ -- Fabien.