| From: | Platon Pronko <platon7pronko(at)gmail(dot)com> |
|---|---|
| To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
| Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: very long record lines in expanded psql output |
| Date: | 2021-08-05 18:30:43 |
| Message-ID: | c084e1fc-0484-1a5e-3645-7c09fdce876a@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi!
>>>>> I also find this annoying and would be happy to be rid of it.
>>>>
>>>> Have you tried "\pset format wrapped"? Pavel suggested it, and it
>>>> solved most of the problem for me, for example.
>>>
>>> Yes, but it changes the data line output. Ideally, you should be able
>>> to modify these independently.
>>
>> I agree, and I think this can be implemented, but I'm a bit afraid of
>> introducing an additional psql option (there's already quite a lot of
>> them).
>> I suspect primary PostgreSQL maintainers won't be happy with such an
>> approach.
>>
>
> it can be a fully new format - designed for simple copy from terminal. Some
> like
>
> ====== record: 10 ======
> ------------ proname ------------
> left
> ------------ prosrc ------------
> $lalalal
> ewqrwqerw
> ewqrwqerqrewq
> $
> ===============
I don't think that would be a good idea. If somebody really just needs to copy,
then wrapping the query in "copy (...) to stdout" already works nicely,
no need to create a special mode just for that.
I think the question was more about being able to copy in an ad-hoc way,
in the middle of scrolling trough "normal" output.
Best regards,
Platon Pronko
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavel Stehule | 2021-08-05 18:37:47 | Re: very long record lines in expanded psql output |
| Previous Message | Dean Rasheed | 2021-08-05 18:27:16 | Re: Numeric x^y for negative x |