Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5KQf-0003in-Es for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Sep 2019 01:49:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5KQe-0002tV-97 for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Sep 2019 01:49:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5KQd-0002qa-V5 for pgsql-hackers@lists.postgresql.org; Wed, 04 Sep 2019 01:49:48 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5KQb-0005wv-96 for pgsql-hackers@lists.postgresql.org; Wed, 04 Sep 2019 01:49:47 +0000 Received: by mail-qt1-x844.google.com with SMTP id r5so17331296qtd.0 for ; Tue, 03 Sep 2019 18:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=O2/P5t1hHYPwoHtbJ4fDazFF02P6690lUdp4ZRRQoMQ=; b=QcG8/4Z2KpzRg0gZOVl/u+c6L1+gcbVv+/O1C7ahM5hiyoC3tFJHaOKx+yKDPwbMJc 36oBLHo/XH1VTJcKbIJSoVb5l7L4EzHjHKGoUb3Y9lh/PSHicDxVxjl08kK8zIRBDROt rnXlcBW5EfEbwsuzxR5dX/MgHEUY3Hy1sNwITONO7Up121i4BcT6Dxlx2qp0QmzQKoyc kmZN30d0uhjAp7zCw4pQAoPOp/UrBUq237hp1Gdzk4nuRoYQPjoSh9XgeaXq5E6XZXFn zGCBdjdrjuTHksAmgwyXEekQSNHAXkoCvD2XGjmo/Q6LK+MlHyMzAN8eGJx4LMf+YChE fURg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=O2/P5t1hHYPwoHtbJ4fDazFF02P6690lUdp4ZRRQoMQ=; b=IPM9DiAyAuZEfJiKknQ6C5hpfQqmtUyBxQ4/vFgaecFA46tg3ERfHxub+VToewVesP PE3PpY9SrxhyraLfEO0Mt1XPVCsB2e9XiDVceKrvMRu1Sc46rTRDC1GIyQE+FX+oU/tx jjIWgfZ+pOPxeKZMSLNDw1S97T427U2/k/cPhoZWzU5BPoNNEbyUwnRwJvwhkrJLK5iJ g6wnOHIrKYSnjfniaz4nJnrMyYVqJSJF4Cb9DUGG9IxBN4XMJee769LKDffgg3ZHroUO PoiGSeXlqipxyUA6emcGMZ6zlsSrbZQjpVS+Hr+fioC240xKiXs8k/8uLWYxXrfqt7xu vwUQ== X-Gm-Message-State: APjAAAU3r3LXHoIITnpEUGHTf74ipwbM2xTocTPrTyajcHqYInmAiU3H 6aFK5VQYKPWu1FFXtxCRtx5sqXvR5ms1iA== X-Google-Smtp-Source: APXvYqw/qMzB/0j8GuV8CjHs/TRnphBP/Ncd4h5CggaYb2BWYCGmpxbM/tv+a+AVBPrNIfm4KaUBoQ== X-Received: by 2002:a05:6214:370:: with SMTP id t16mr10502138qvu.245.1567561336135; Tue, 03 Sep 2019 18:42:16 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.51.60]) by smtp.gmail.com with ESMTPSA id c26sm11618900qtk.93.2019.09.03.18.42.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 18:42:15 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 430D5123A56; Tue, 3 Sep 2019 21:42:14 -0400 (-04) Date: Tue, 3 Sep 2019 21:42:14 -0400 From: Alvaro Herrera To: Amit Langote Cc: Pg Hackers Subject: Re: remove "msg" parameter from convert_tuples_by_name Message-ID: <20190904014214.GA16504@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Sep-04, Amit Langote wrote: > On Wed, Sep 4, 2019 at 3:52 AM Alvaro Herrera wrote: > > > > On 2019-Aug-07, Amit Langote wrote: > > > > > If we're reducing the message string to occur only once in the source > > > code, can we maybe write it to be more informative? I wonder if users > > > aren't normally supposed to see this message? > > > > Grepping for the messages given to convert_tuples_by_position yields > > quite a few matches in regression test output, but none for the one in > > convert_tuples_by_name. This makes me think that it isn't user-visible, > > unless things go very wrong. > > > > Pushed the patch, thanks. > > Thanks. I thought you'd change the ereport to elog while at it. Oh, that didn't occur to me, but because it has errdetail and an errcode it'd be more controversial. I don't see any reason to do it, frankly ... -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services