Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mBiXi-0004Bz-90 for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Aug 2021 18:56:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mBiXg-0006QE-WE for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Aug 2021 18:56:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mBiXg-0006Q6-M1 for pgsql-hackers@lists.postgresql.org; Thu, 05 Aug 2021 18:56:32 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mBiXW-0006vF-Jp for pgsql-hackers@lists.postgresql.org; Thu, 05 Aug 2021 18:56:32 +0000 Received: by mail-lf1-x12d.google.com with SMTP id bq29so13087105lfb.5 for ; Thu, 05 Aug 2021 11:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DMDGcxou7wRpdnTiXCa91I1BNAf/BcdXKDmnZa5YWV4=; b=Nr9gZCPKSSnAdSaFNJyjO6TyYlA5KpLfTXVRkRNBtozF5bbuqPY+v971dk+t49/Mr2 ndFlcT5hrQgGAiDsyMUHEsYBVRU6MsyPnD1xJaTxKjNa2mA9HvYwo4N+O2NTrAbLYJsp 13CVcKHROylnXeKQHPS9H81hqgAmw1GFkWhTQNqjr37xZPbrh788waj2CJNqPs1a2u61 66Gi6hEZjA7qHQSHZP8bKtrYo+gpSqlFXfihCUOkh2COB25uRnQt2JyE0f2LScYiTS7j vJlXDVDNLv4AjunIHidoqXapVd2AJ2yVTdCb9xXOCvcod+gP8dUaH1B7pMPXbjreTSUx n5Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DMDGcxou7wRpdnTiXCa91I1BNAf/BcdXKDmnZa5YWV4=; b=V+r+Hud7QaGU1Trgp0VAzRAwEOe1E5RUki3vjdx+vpFBsvrud/RNk7lwh0k0wmGkr8 E64qDLgfqQnKHpxcfNsVhD+j1UhA5J0LWWNKyeT0F6za/DCY+ti8O7qELAP5S28eGtPf +P4Hp8ebJVmR+rpYjIHrLKMWXSm6tYX0D6/Ces1Be/O89W2aT+o0KzPWZGGXKZ7DOzlB frC8miG4z+qQO/ymHzCOHXkp0ij0vy086j6VXk6QfZ0+73sjVtxqd0CYGnRvDH7z5X76 00Q2hYBpGhIivqjEzFJ0mFVerfQqbY4Q3Lzaa7Rztiq47mFSSMi3LN9arEJNXqOGKBLo EBvg== X-Gm-Message-State: AOAM530ccGDnDBDI1pxN1DOvLTOTUeQDotbrGGHCxpoPv61h0t+sQ1mU riCoYbHLrfqt02VZyeeksN4VFRX7FqY= X-Google-Smtp-Source: ABdhPJwuuIoKSHtsBgvavZ5qOHC54wM+/ysCj3oSV0NzgRjaV1sgtiMjQr+p7a49kdNIebZobhO2Eg== X-Received: by 2002:ac2:5d2d:: with SMTP id i13mr4811651lfb.12.1628189781294; Thu, 05 Aug 2021 11:56:21 -0700 (PDT) Received: from [192.168.1.3] ([46.138.249.39]) by smtp.gmail.com with ESMTPSA id q3sm591694lfc.284.2021.08.05.11.56.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Aug 2021 11:56:20 -0700 (PDT) Subject: Re: very long record lines in expanded psql output To: Pavel Stehule Cc: Andrew Dunstan , PostgreSQL Hackers References: <998a8549-f808-a349-bae6-9f44d07e050d@dunslane.net> <4e8b9a10-95aa-aecf-01a1-cbc24d643465@gmail.com> From: Platon Pronko Message-ID: <3d337f89-d7db-2198-2a7c-a7ce58b94ce8@gmail.com> Date: Thu, 5 Aug 2021 21:56:20 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > it can be a fully new format - designed for simple copy from terminal. Some > like > > ====== record: 10 ====== > ------------ proname ------------ > left > ------------ prosrc ------------ > $lalalal > ewqrwqerw > ewqrwqerqrewq > $ > =============== > no, it was proposed for psql How is this better than "copy (...) to stdout"? E.g.: $ copy (select * from pg_class limit 1) to stdout; 2619 pg_statistic 11 12016 0 10 2 2619 0 18 402 18 2840 t f p r 31 0 f f f f f t n f0 478 1 {postgres=arwdDxt/postgres} \N \N You can still copy the necessary parts (using mouse selection) - seems that it achieves the the same goal. Best regards, Platon Pronko