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 1havEx-0008R3-Uc for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Jun 2019 04:52:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1havEw-0008LO-FT for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Jun 2019 04:52:02 +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 1havEw-0008LH-2y for pgsql-bugs@lists.postgresql.org; Wed, 12 Jun 2019 04:52:02 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1havEs-0006Us-F9 for pgsql-bugs@lists.postgresql.org; Wed, 12 Jun 2019 04:52:01 +0000 Received: by mail-qt1-x841.google.com with SMTP id a15so17259547qtn.7 for ; Tue, 11 Jun 2019 21:51:57 -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=ckIKJG9x5ZRk5B6HcXXEkyI9JUWRqpHHGGkqz7po2w8=; b=xMN6hdHd6tQL02RQeeALoWU88sZF+nqodepRJi2BD7xIMvWiNK6V57LWzD2+eldiwS srMxJEcckgWONyjR3LM3CFkrZIidpYCqT06vnaxCu2pihcrtgbefntHy10EF5tU2sd9j TALaV/H8GEQPNVZrTQfgRMH+f9rsP9K0WE880yeBq1yZgIL3/SGvK3j39WatHDRV3mY9 VnijhOl+dgNRpnNhu5d6et/7DkXkITopPEKExZNe1FLBibGSi8zTmt9+S6yA0kSrLxKM hURiT6ZWYR5TBM52795E0vcKhuwkvdxuloi5wpUjLCJAH4JObwB5kfW1R8QjzLuWBjdq oUIw== 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=ckIKJG9x5ZRk5B6HcXXEkyI9JUWRqpHHGGkqz7po2w8=; b=neSHlwWFQ+PXmMn1Mkdrpfsd5usZ3h20J02rsTkU3sBucxF2ckVZSqDcNqvQhwT8Ln Ch2NBmQzJ+X7mQBmlGPVHHKxrF46VL3u5i1aG142w497AhYdhJ9avnLX14dc3HYShOHE b2SbWk+NqXAMbmsB9q0cKlH/N5bJpU7TZaFd33icKPviRV4CCYTOL2e8f+xfFjgHRvAC /s2svIrVN+hPXcOJ6W+3KEhwzS3DIc/v8hKdZwSNp1fYDVnfYQ6PlTIS7wo67MOHQ/Pu LMdBRrX1Do+K/4/IOWFM4wX+cntGOdyJd9h8xWPi05FGrMHCaP8FqC51EFFXaXL6/Bnj W2EQ== X-Gm-Message-State: APjAAAXl/gYFOL05L81h27+Vm7xjuf7MUdUzf9jUjodYQAmgWxNjgtXt 84N+UvubqXWY4QMtLnyxouSackwdMF0diA== X-Google-Smtp-Source: APXvYqzKdSaWOgAUqAEyHys4mKwaggHwiEPieeFvpL6yZUOxZfOzDT0L2AQrLeQgnnrL2Nt3VhQ83g== X-Received: by 2002:ac8:428f:: with SMTP id o15mr65312911qtl.210.1560315116601; Tue, 11 Jun 2019 21:51:56 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([177.154.139.203]) by smtp.gmail.com with ESMTPSA id j22sm7604268qtp.0.2019.06.11.21.51.55 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 11 Jun 2019 21:51:55 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 6194A12031A; Wed, 12 Jun 2019 00:51:52 -0400 (-04) Date: Wed, 12 Jun 2019 00:51:52 -0400 From: Alvaro Herrera To: Michael Paquier Cc: Daniel Gustafsson , clemens@ladisch.de, PostgreSQL mailing lists Subject: Re: BUG #15833: defining a comment on a domain constraint fails with wrong OID Message-ID: <20190612045152.GA3918@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190612023656.GA1745@paquier.xyz> 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-Jun-12, Michael Paquier wrote: > On Tue, Jun 11, 2019 at 09:32:55AM -0400, Alvaro Herrera wrote: > > Yeah, looks better. I think the error message should be a normal elog() > > cache failure, though ... at least in the COMMENT case, the obj-does-not- > > exist message is supposed to be thrown by get_object_address(), before > > check_object_ownership is called. > > > > As a matter of style, I would get rid of the 'conoid' variable and just > > use address.objectId where needed. > > OK. I have included both your comments, and committed the patch down > to 9.5 where it applies. Thanks for the feedback! Thanks for fixing :-) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services