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 1kNOx6-0004hd-Ch for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Sep 2020 23:22:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kNOx5-0003RB-6E for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Sep 2020 23:22:31 +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 1kNOx4-0003R3-SB for pgsql-bugs@lists.postgresql.org; Tue, 29 Sep 2020 23:22:31 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kNOx2-00042o-FB for pgsql-bugs@postgresql.org; Tue, 29 Sep 2020 23:22:29 +0000 Received: by mail-qk1-x742.google.com with SMTP id w16so6269279qkj.7 for ; Tue, 29 Sep 2020 16:22:28 -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=CamFUJCB3C04dfec10Fx7gK0lyDip9BqW70NqbqUgk4=; b=Owon+Col9F+gkD5JjNzA3EvzWDRUcWzqsOIrH0tOMRSuXQpxnWsihHkmtfZW8w5t57 ZsFS/PO8Y9/t8mkbOMgNx66XCPxWhNhLM+QtYWbex0l17BddvrgT8Z7VXkYJ5AwgzDP9 PQwYtTvmfKAZFYYOtT4ewWIDZEIHDqLpbo4iRpjOLks38Lymzn04xgrAc4fdhDm1yZNS PZkPdVdpIuyhjAtS67+nN8UnlBoXWLZSsv1qTToV34UuixQWW0MHII989hrp76oVBA4o VTW+Nzgn1qzjG+FkvW9BimnwO5bnmn/TK51SqxI+eCe3qFqDKYxa1rCH7pAtYfdvNu4J darA== 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=CamFUJCB3C04dfec10Fx7gK0lyDip9BqW70NqbqUgk4=; b=G3h3hng4t4qXUXHJqjeTe81eQiGQDkPrXLmI9oS4kjt3lQQ7C4FLF2yZiol1o/ShAs yGrRA0lS5vq+LolhMRtuBUcq5eYhHiG8cax27FKbnz8cuW5GoI4rKutEjOtWOJl9kus+ 8LmxCMHj0Fx6GSqtiG0L/tqVpHN4evzrful/2z89u65YyG6i/J8z1fEU2QiKkNKqYqW7 2VipYE0tSf5hZpJQB7Evw77ooYKtZue4scGte41ikK2Nygt29fxAyZcRH+QmGLXPwtvN ZV5r2Qg/zR75HQEP5DA0WYJORGekJ7O5ay1yhdGqzOX6f8SmOQwxvPUsPQoYFSzG0Jib iGZQ== X-Gm-Message-State: AOAM532EjxmsxL2dOYgUGqGqx6KVHKL1r8WB/I/Y+ly6tyf18Ba0ea8o vIWuKtqXfyj5ajHrhSSBX5kNbA== X-Google-Smtp-Source: ABdhPJzGbhQ8s4OgloTM93SoS+yGvB5/RRtoArbtc1w6HqCXJMRYDmFqJOoNA4OLYZDNAlzEzPZU2w== X-Received: by 2002:ae9:eb42:: with SMTP id b63mr32311qkg.106.1601421747355; Tue, 29 Sep 2020 16:22:27 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.148]) by smtp.gmail.com with ESMTPSA id f8sm6572349qkb.123.2020.09.29.16.22.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 16:22:26 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 20E022A14FE; Tue, 29 Sep 2020 20:22:25 -0300 (-03) Date: Tue, 29 Sep 2020 20:22:25 -0300 From: Alvaro Herrera To: David Rowley Cc: Tom Lane , Nagaraj Raj , Pg Bugs Subject: Re: ERROR: insufficient columns in the PRIMARY KEY constraint definition Message-ID: <20200929232225.GA16296@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2020-Sep-30, David Rowley wrote: > I didn't go with the same wording. The reason was that I didn't feel > the word "constraint" had to be mentioned twice. > > I won't object if you or Alvaro want to keep Alvaro's suggestion though. *Shrug* this seems good enough. A purist could complain that it is redundant, but in practice it's not important. Here's the proposed error message fix, using the wording that saves $1.99. I agree that trying to cram the constraint type in the primary message is uglier. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --BXVAT5kNtrzKuDFl Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Reword-error-message.patch"