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 1gsdtk-0001O3-1m for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Feb 2019 01:27:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gsdti-0007oL-PB for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Feb 2019 01:27:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gsdti-0007oD-Ao for pgsql-hackers@lists.postgresql.org; Sun, 10 Feb 2019 01:27:06 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gsdte-0005BV-Ry for pgsql-hackers@postgresql.org; Sun, 10 Feb 2019 01:27:05 +0000 Received: by mail-qk1-x743.google.com with SMTP id o125so4468443qkf.3 for ; Sat, 09 Feb 2019 17:27:02 -0800 (PST) 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=pJtAAC10AHq7a83RtnuLbVvVsiyGD9vb706S3xPOpkQ=; b=aM2ucORW2WjJGX65fk4NfNqhnZxjlmx5K20U4YQ4YZFbpHfJz1OTxlkeXrrZIkC64V FtS5Dol/MTiJtdl22X4SSwXVpKO9D8drNk+1KQ7KVO/8nuWCVfsQNneCWsORT/7YIooX 5BZ/QHJgKG8aoiE+JoVxZDuN0kPkWlhZ0lDj1D3xy8yN1WHdduVHC/FWIaG/O99EWuGw jUAADg0+zucBs5NTOH1N+OdBRTQU8OMLiENI55nRTviit7NsDmX9Gko+k7gK0kf6fzJH nm4Xfl+cMPR9KnXm6B2w5v6Ygk+7wpM1dVLlTqSFmKcyyCjn9WRwsu+hgSJe5g7ErXS4 hH2g== 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=pJtAAC10AHq7a83RtnuLbVvVsiyGD9vb706S3xPOpkQ=; b=TgnbeDQzBIbvD59X7SAerv3p0i2b/EYJ8oy2VzuPJJUl2GPWi3qIZZEggbIZzlDSTy y/XxKHs5hlJYUFaD6MwrijRwsei9f+9TJ1EPJBnPsdfXdll1iL0Up3TXEQ9IVYuobVBf PUEVsdSkbbsI/n6RtWf8Q5/mxNyau6rAOwiiWVTW5t2YqtsVkOdtaHdpnSz5FO/9UN0n pgM+Ar+yPjqXWZRvmZw5qHlEFCnGS4I0LsYXkp0/2j9z21WKb8JgHEKcUOcV1wZePYrP kRyvPx40sswwh+sMVXfIiUclOZaq7HA5YBaIns2xq1/PGiTIbQOr36kPngGFPo3enDkw spdQ== X-Gm-Message-State: AHQUAuYkrG42aMLIjVSw0hc0U8w5MYYkm9aIrMvHFkSabMV6tz6npRqm Vp0UzwQ0RM5y8k3e3N7RX78TB2py7VM= X-Google-Smtp-Source: AHgI3IYfXNqZ2SqQEykXYmT7mJRyrwX0HbODWFVpGZ/05fNNvQC710eW0Hb44oO0MpV9QYy4RkRpCg== X-Received: by 2002:ae9:eb52:: with SMTP id b79mr20755956qkg.87.1549762022094; Sat, 09 Feb 2019 17:27:02 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([201.186.80.67]) by smtp.gmail.com with ESMTPSA id y70sm6338048qka.75.2019.02.09.17.27.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Feb 2019 17:27:01 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id AA93C120B55; Sat, 9 Feb 2019 22:26:59 -0300 (-03) Date: Sat, 9 Feb 2019 22:26:59 -0300 From: Alvaro Herrera To: Tom Lane Cc: Amit Langote , Peter Geoghegan , PostgreSQL Hackers Subject: Re: Fixing findDependentObjects()'s dependency on scan order (regressions in DROP diagnostic messages) Message-ID: <20190210012659.GA31140@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <27981.1549761937@sss.pgh.pa.us> 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-Feb-09, Tom Lane wrote: > Alvaro Herrera writes: > > On 2019-Feb-09, Tom Lane wrote: > >> Oh ... then why don't we go ahead and get rid of the constraint entry, > >> too? > > > Because each partition has its own pg_constraint entry. (Otherwise > > there's no place to put the column numbers into -- they can differ from > > partition to partition, remember.) The only thing we do is mark it as > > child of the parent's one. > > Uh-huh. And what happens after DETACH PARTITION ... are you going to run > around and recreate these triggers? Yep, that's there too. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services