pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Platon Pronko <platon7pronko@gmail.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: very long record lines in expanded psql output
Date: Thu, 5 Aug 2021 21:56:20 +0300
Message-ID: <3d337f89-d7db-2198-2a7c-a7ce58b94ce8@gmail.com> (raw)
In-Reply-To: <CAFj8pRAScCyhDTk0rnzuqry603H5C9wF=wx-p7dvx7+t=U3CKg@mail.gmail.com>
References: <f03d38a3-db96-a56e-d1bc-dbbc80bbde4d@gmail.com>
	<CAFj8pRBJ8bcTga9qTYG_v25BfeCB=4+GNc1rbf94qex_3C_e-A@mail.gmail.com>
	<998a8549-f808-a349-bae6-9f44d07e050d@dunslane.net>
	<d5280c71-b11b-b0fc-f57d-5033a9197406@gmail.com>
	<bf64d7b0-413d-1501-00b2-992491b865b0@dunslane.net>
	<4e8b9a10-95aa-aecf-01a1-cbc24d643465@gmail.com>
	<CAFj8pRCZwOXDmcHQ5tKt-ukduSRzPmu2-svouCEDQ+LCFXSmfw@mail.gmail.com>
	<c084e1fc-0484-1a5e-3645-7c09fdce876a@gmail.com>
	<CAFj8pRB+fu_GfZmw4WpO-qp+K4UnHE0q2NSkkvs=oxBndgNurA@mail.gmail.com>
	<c0113fed-3a16-48af-135e-a9ad33ea6238@gmail.com>
	<CAFj8pRAScCyhDTk0rnzuqry603H5C9wF=wx-p7dvx7+t=U3CKg@mail.gmail.com>

> 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





view thread (39+ messages)  latest in thread

Message-ID: <3d337f89-d7db-2198-2a7c-a7ce58b94ce8@gmail.com>
Permalink:  ../3d337f89-d7db-2198-2a7c-a7ce58b94ce8@gmail.com/
Also on:    postgresql.org/message-id/3d337f89-d7db-2198-2a7c-a7ce58b94ce8@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: platon7pronko@gmail.com, pavel.stehule@gmail.com, andrew@dunslane.net, pgsql-hackers@lists.postgresql.org
  Subject: Re: very long record lines in expanded psql output
  In-Reply-To: <3d337f89-d7db-2198-2a7c-a7ce58b94ce8@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox