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 1h0png-0007k7-8j for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Mar 2019 15:46:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h0pnd-0002VY-VF for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Mar 2019 15:46:41 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0pnd-0002VP-Iy for pgsql-hackers@lists.postgresql.org; Mon, 04 Mar 2019 15:46:41 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0pnW-00007x-7S for pgsql-hackers@postgresql.org; Mon, 04 Mar 2019 15:46:40 +0000 Received: by mail-qk1-x743.google.com with SMTP id r21so3009847qkl.11 for ; Mon, 04 Mar 2019 07:46:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=AWY7jnFkCVlInTFgzLgaeZd7VrI14zdNbaECmAylDSI=; b=0flYskAIfHTqRrGRg+c4SZFZH9iyZ1AwVoOQ7VXKjQ/aNsORx8u8VQaErLD0hRHAfD qczXD7pIsEzyaQw5dZyHIglPsomQWkIdLtC1vzIQPTOc7MDibB2CdtjmqEuZnO1XJPB5 DM0SnmZ+mve0ByW2VHVojqH3M1g54lQuHsswtVEO0qZ7FHRANNErJalML4ehdJxrpsEp 9FFjdlElDUGF2VDniLjqY7BsP7O2GqESnsi7qnMCvW3Nf1HchHEEdJAptht8OoY6STeE ka4oqupL19MaquSf3CLl0oRgMiMGuqqWbt7u/HThIv3FjdxQEZAlic6JvUPGp76sU55N /hsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=AWY7jnFkCVlInTFgzLgaeZd7VrI14zdNbaECmAylDSI=; b=h4+p78tQpDcTZ1FTR3gTgO57bmvC/GT9rLh6SD4lYK3oHCYGs1FFLizo6Y3qBl8e1x 3FfHVwHfCC7MSHDt/sfkuWitF1DDPqQQy6yRoKzMEe3ZdcPfD5sh5su6CcLzRBnEKL7d sxeE/Io212M2u17f9qbCl61iVbI2J/9koIaE7bGHuvBxE8Pihn1uk05x+YakRW+rFGO3 SRg1umojP4Q5EToumqnvVBdFnEhwve4pVnxw5Oe0V7NusoRd+003aJjMSS90xcueVK8x r3nISEqy2Xva+cxoD8m73HeQHyp+4ss2nzAUtvQIBfk5B9g8xoMBo2bS016I0fexiQDf FNcw== X-Gm-Message-State: APjAAAWYo6oIc93LhKnZ+6V2uuSMJ7qpv14rcesNwxEbnmbgQSKOOvWb X4VQZrcNKzC7eEWH3FfHHUrrgg== X-Google-Smtp-Source: APXvYqzRv5j2W7Ag7O+nTjU3gLrZ+kIaxt2FFg8HGBd4nueWFDSQkPrt7LwjsM+zI82jum/qnYO/Dg== X-Received: by 2002:a37:7645:: with SMTP id r66mr13679299qkc.338.1551714391359; Mon, 04 Mar 2019 07:46:31 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([191.126.227.90]) by smtp.gmail.com with ESMTPSA id f8sm2320356qkl.11.2019.03.04.07.46.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Mar 2019 07:46:30 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id ADE5312193D; Mon, 4 Mar 2019 12:46:25 -0300 (-03) Date: Mon, 4 Mar 2019 12:46:25 -0300 From: Alvaro Herrera To: Fabien COELHO Cc: David Rowley , Surafel Temesgen , Dmitry Dolgov <9erthalion6@gmail.com>, PostgreSQL-development Subject: Re: pg_dump multi VALUES INSERT Message-ID: <20190304154625.GA495@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Mar-02, Fabien COELHO wrote: > Although I'm all in favor of checking the int associated to the option, I do > not think that it warrants three checks and messages. I would suggest to > factor them all as just one check and one (terse) message. I suggest ("rows-per-insert must be in range 1..%d", INT_MAX), like extra_float_digits and compression level. > About the output: I'd suggest to indent one line per row, something like: > > INSERT INTO foo VALUES > (..., ..., ..., ...), > (..., ..., ..., ...), > (..., ..., ..., ...); +1. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services