Re: very long record lines in expanded psql output

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Platon Pronko <platon7pronko(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:50:09
Message-ID: CAFj8pRAScCyhDTk0rnzuqry603H5C9wF=wx-p7dvx7+t=U3CKg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

čt 5. 8. 2021 v 20:48 odesílatel Platon Pronko <platon7pronko(at)gmail(dot)com>
napsal:

> Hi!
>
> >> 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.
> >>
> >
> > It is working well, but it is copy to file, not copy to clipboard.
>
> Maybe I misunderstood - are you suggesting this a special mode in pspg? I
> thought
> that you were suggesting to implement a mode in psql, something like
> "\pset format_for_clipboard".
>

no, it was proposed for psql

> >> I think the question was more about being able to copy in an ad-hoc way,
> >> in the middle of scrolling trough "normal" output.
> >
> > I understand your motivation, but I don't feel a significant benefit to
> > increase the complexity of the main format (more, when it breaks pspg,
> > without possibility to fix it). but it can depend on usual data, and it
> is
> > true, so when I use pspg, I don't use extended mode too often.
>
> To clarify: I'm not suggesting my patch anymore - it definitely breaks
> pspg and this
> is completely unacceptable.
> We're just discussing the possible alternate solutions, I think.
>

yes

Pavel

> Best regards,
> Platon Pronko
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Platon Pronko 2021-08-05 18:56:20 Re: very long record lines in expanded psql output
Previous Message Platon Pronko 2021-08-05 18:48:30 Re: very long record lines in expanded psql output