pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Paul Förster <paul.foerster@gmail.com>
To: Bryn Llewellyn <bryn@yugabyte.com>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: psql behavior change on upgrade from version 12.x to 13.1
Date: Tue, 9 Feb 2021 20:11:02 +0100
Message-ID: <3356BD06-E1D4-40A6-AFE7-6E3772A55AB4@gmail.com> (raw)
In-Reply-To: <7CCA6956-D22C-4E4F-B7B4-A450A062BF59@yugabyte.com>
References: <7CCA6956-D22C-4E4F-B7B4-A450A062BF59@yugabyte.com>
Hi Bryn,
> On 09. Feb, 2021, at 19:55, Bryn Llewellyn <bryn@yugabyte.com> wrote:
>
> Using a MacBook Pro with the current Big Sur—Version 11.2 (20D64).
>
> I just upgraded to PostgreSQL 13.1. (Earlier, I was on 12.x.) Using psql, the behavior of ordinary copy-and-paste has change dramatically, and for the worse, w.r.t. Version 12.
>
> HAS ANYBODY ELSE SEEN WHAT I REPORT BELOW?
>
> First observation
>
> Now, when I copy a single line SQL command, terminated with semicolon and newline from the Text Edit app (with Command-C or the menu item) and then paste it into psql (with Command-V or the menu item), the newline isn't respected. I have to hit the return key by hand to see the effect. Moreover, the pasted line has a highlighted background.
>
> Second observation
>
> When I copy _several_ lines of SQL commands from the Text Edit app and then paste them into psql, none of the newlines are respected. (I still get the strange highlight.) Now when I hit the return key, I get errors like this:
>
> \i: extra argument "<the text of the line>" ignored
>
> for every single line.
>
> This makes a standard working practice that my fingers have learned over decades suddenly completely unusable.
>
> NOTE: the \i metacommand still works as it always did.
well, I guess this is a macOS Big Sur issue and not a PostgreSQL problem. Or rather, it's a user (your) issue because it works as designed. ;-)
I'm on Big Sur 11.2 (20D64) too. From what I can tell, copy/paste hasn't changed. But then, I don't use Text Edit. I use both vi in a Terminal and TextMate. I don't like Text Edit because this is just as comfortable and capable as is Windows' Notepad...
Anyway, copying a line including the newline will require you to mark the whole line. Triple click on a line and you see the marking go beyond the last character in the line.
If you click (and hold!) while moving the mouse you will see the marking move accordingly. Note how it jumps to show the complete line up to the full right including the part beyond the last character if you move the mouse beyond that. If you want to include the new line in your copying to the clipboard, you'll need to include that in your marking.
Cheers,
Paul
view thread (12+ messages) latest in thread
Message-ID: <3356BD06-E1D4-40A6-AFE7-6E3772A55AB4@gmail.com> Permalink: ../3356BD06-E1D4-40A6-AFE7-6E3772A55AB4@gmail.com/ Also on: postgresql.org/message-id/3356BD06-E1D4-40A6-AFE7-6E3772A55AB4@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 from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-general@postgresql.org Cc: paul.foerster@gmail.com, bryn@yugabyte.com Subject: Re: psql behavior change on upgrade from version 12.x to 13.1 In-Reply-To: <3356BD06-E1D4-40A6-AFE7-6E3772A55AB4@gmail.com> References: <7CCA6956-D22C-4E4F-B7B4-A450A062BF59@yugabyte.com> <3356BD06-E1D4-40A6-AFE7-6E3772A55AB4@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