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 1jr2Jr-0000Lv-6C for pgsql-general@arkaria.postgresql.org; Thu, 02 Jul 2020 16:44:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jr2Jq-0000FQ-45 for pgsql-general@arkaria.postgresql.org; Thu, 02 Jul 2020 16:44:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jr2Jp-0000FI-Qa for pgsql-general@lists.postgresql.org; Thu, 02 Jul 2020 16:44:13 +0000 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jr2Jn-00008c-H7 for pgsql-general@lists.postgresql.org; Thu, 02 Jul 2020 16:44:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1593708251; x=1625244251; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to; bh=ErhJ2XSQHCsV8x3LD7wJmj0QBUw1qKecggTu02nUtRA=; b=kp/ocPGBMTKwMBKqByg+XSTV4+ARX8WwieTrksywbG07IO3t39/uiDmx LkQqNo7Fg6E8hKjLcVBcxZ1H59AFB3yALQI1MWiZrrAPR0dI8QE4wwWKP qsANZJtfG6smbzSeSbVwrAR2eb7zl1XHz/bSFy+cywHRO94RJYRk0lfFD I=; IronPort-SDR: JNOlIWL58PKCoUDYFSNKQY6qA8zeox707yCSUmrpWpEn2CgiQ8nQEfjKrNccirVOIRP8KAkAoc Fv8NdqZP6ZKA== X-IronPort-AV: E=Sophos;i="5.75,304,1589241600"; d="scan'208,217";a="41143988" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2a-f14f4a47.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 02 Jul 2020 16:44:09 +0000 Received: from EX13MTAUWA001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2a-f14f4a47.us-west-2.amazon.com (Postfix) with ESMTPS id 3B8F8A2968; Thu, 2 Jul 2020 16:44:09 +0000 (UTC) Received: from EX13D18UWA002.ant.amazon.com (10.43.160.199) by EX13MTAUWA001.ant.amazon.com (10.43.160.58) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 2 Jul 2020 16:44:08 +0000 Received: from 186590ce269b.ant.amazon.com (10.43.160.26) by EX13D18UWA002.ant.amazon.com (10.43.160.199) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 2 Jul 2020 16:44:08 +0000 Subject: Re: survey: psql syntax errors abort my transactions To: "David G. Johnston" CC: "pgsql-general@lists.postgresql.org" References: From: Jeremy Schneider Message-ID: <58f63b75-f11e-ce5b-3ec5-7d4acfbb87d6@amazon.com> Date: Thu, 2 Jul 2020 09:44:08 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------27B3416A2DDA14266A66310F" Content-Language: en-US X-Originating-IP: [10.43.160.26] X-ClientProxiedBy: EX13D08UWC001.ant.amazon.com (10.43.162.110) To EX13D18UWA002.ant.amazon.com (10.43.160.199) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --------------27B3416A2DDA14266A66310F Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On 7/2/20 09:28, David G. Johnston wrote: > The status quo prevailed since no-one chose to contribute further > arguments for change and the original patch was retracted.  What kind > of "bike-shedding" (which seems to be used incorrectly here) would you > expect? The bike-shedding comment reflects my sense of humor, which is evidently so dry that it can be entirely un-detectable.  :)  But overall I do think there's room for input from more people.  Might not change the outcome, I'm just curious if there are more people who'd have thoughts to offer. I'm not sure hint text would be the right course, as the hint wouldn't make sense in the context of other clients and I don't know if we have a mechanism now for the server to change it's error response based on which client is being used. One other thought occurred to me after sending this email - does ON_ERROR_ROLLBACK=interactive differentiate between syntax errors and other errors? Thinking about how users approach SQL, this feels significant. I'd happily want to let users at my company retry after syntax errors, but I'd want them to inspect any other error more closely. -Jeremy -- Jeremy Schneider Database Engineer Amazon Web Services --------------27B3416A2DDA14266A66310F Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit
On 7/2/20 09:28, David G. Johnston wrote:
The status quo prevailed since no-one chose to contribute further arguments for change and the original patch was retracted.  What kind of "bike-shedding" (which seems to be used incorrectly here) would you expect?

The bike-shedding comment reflects my sense of humor, which is evidently so dry that it can be entirely un-detectable.  :)  But overall I do think there's room for input from more people.  Might not change the outcome, I'm just curious if there are more people who'd have thoughts to offer.

I'm not sure hint text would be the right course, as the hint wouldn't make sense in the context of other clients and I don't know if we have a mechanism now for the server to change it's error response based on which client is being used.

One other thought occurred to me after sending this email - does ON_ERROR_ROLLBACK=interactive differentiate between syntax errors and other errors? Thinking about how users approach SQL, this feels significant. I'd happily want to let users at my company retry after syntax errors, but I'd want them to inspect any other error more closely.

-Jeremy

-- 
Jeremy Schneider
Database Engineer
Amazon Web Services
--------------27B3416A2DDA14266A66310F--