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 1l9YPq-0002UP-SY for pgsql-general@arkaria.postgresql.org; Tue, 09 Feb 2021 19:11:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l9YPo-0007q8-NN for pgsql-general@arkaria.postgresql.org; Tue, 09 Feb 2021 19:11:12 +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 1l9YPo-0007q0-Db for pgsql-general@lists.postgresql.org; Tue, 09 Feb 2021 19:11:12 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l9YPh-0002HZ-Iv for pgsql-general@lists.postgresql.org; Tue, 09 Feb 2021 19:11:11 +0000 Received: by mail-wm1-x32f.google.com with SMTP id u14so4555753wmq.4 for ; Tue, 09 Feb 2021 11:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=G9u5o3vYTHHo0tp6XWdCfjYCDXuS/IWZvAw2jOKjtg0=; b=aDD+WMGxBl6Y/MwPeQNTCyJ1NQMx4CeAA7F3uWzOjHKSrP2GuPFcgC9okdHVGkPc2N LUg9weTI+hvx1cnlFuf/+KOMHTIFAS0IXz75fVJrBilW1cUjDvKSEVImp2B93Lu6elU8 bfaUvrDHRPKfoKNfZKp6CV0o7Qa/AlMbiSq8122bpPWimRfewAE3/GBGj5b7OdZtPyLF yENbuPy9jHn4mUyKmdH9tV4waz6XS/lks9QoYLEdyrXwznM+gt3BraiOzK92N/+2dNaL SKIlpj3Jh1hssCdBBV4p7/WNK7g+lT69RS2wZYKYq4GktbZjFVOsHYFpaEejLjFigp8a Xw8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=G9u5o3vYTHHo0tp6XWdCfjYCDXuS/IWZvAw2jOKjtg0=; b=M4T8YzY5jIiEcjsmB5aNkrujfbOAGXGKaWGuUgRn3edxBzxEeDvWLgkGJcfVvDpIsb PyY/j9mPqmeH1GGitzsNYnQ/Fl2jdDmQxmO5pqdicQUR8dBbHjqWXyU6zad2H6kr8zM4 QFiMkDaejxQ2sg0WFdrEvE7EWnsrzblNv0tQ2EbcG+gg+puLSunQJ7CGL0/GHm8W7XtX 9Ch8YO+7q+byQTGmQc+sU0irpl0gT/jFxoiEWJD//eRW60uVm1g0BTjgV4XFmi1oL2eT Td5iGnE9HsckPt/Jarte4LQ1n/d8NX8zF8dWtW1YUcXs2hjIRNrnuksBPrYajuvlSNyY Ming== X-Gm-Message-State: AOAM530INLeQ1lg9OQ8yEt4of6AFDzP75BPAsk9ilKE9XErmRRDuRQWc LpjN+Qv537/m/HCCmxFRgkU= X-Google-Smtp-Source: ABdhPJyy3hOy5OnV+nG3Q5Md8SR/HCVyeOkQoIVqt3ESpKQJTrd/kvbrEe5dRe4uRSdhx1DW3k5n8w== X-Received: by 2002:a05:600c:154f:: with SMTP id f15mr4957890wmg.46.1612897863930; Tue, 09 Feb 2021 11:11:03 -0800 (PST) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id k6sm40639710wro.27.2021.02.09.11.11.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Feb 2021 11:11:03 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: psql behavior change on upgrade from version 12.x to 13.1 From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: <7CCA6956-D22C-4E4F-B7B4-A450A062BF59@yugabyte.com> Date: Tue, 9 Feb 2021 20:11:02 +0100 Cc: pgsql-general list Content-Transfer-Encoding: quoted-printable Message-Id: <3356BD06-E1D4-40A6-AFE7-6E3772A55AB4@gmail.com> References: <7CCA6956-D22C-4E4F-B7B4-A450A062BF59@yugabyte.com> To: Bryn Llewellyn X-Mailer: Apple Mail (2.3654.60.0.2.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Bryn, > On 09. Feb, 2021, at 19:55, Bryn Llewellyn wrote: >=20 > Using a MacBook Pro with the current Big Sur=E2=80=94Version 11.2 = (20D64). >=20 > 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. >=20 > HAS ANYBODY ELSE SEEN WHAT I REPORT BELOW? >=20 > First observation >=20 > 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. >=20 > Second observation >=20 > 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: >=20 > \i: extra argument "" ignored >=20 > for every single line. >=20 > This makes a standard working practice that my fingers have learned = over decades suddenly completely unusable. >=20 > 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. =46rom 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=