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 1izRzj-0007IA-Nf for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Feb 2020 21:13:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1izRzh-0005o1-OZ for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Feb 2020 21:13:57 +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 1izRzh-0005nB-FY for pgsql-hackers@lists.postgresql.org; Wed, 05 Feb 2020 21:13:57 +0000 Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1izRzd-0003I7-8Z for pgsql-hackers@lists.postgresql.org; Wed, 05 Feb 2020 21:13:56 +0000 Received: by mail-qv1-xf44.google.com with SMTP id z3so1852528qvn.0 for ; Wed, 05 Feb 2020 13:13:53 -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=NmXowNV1NXDr+TsZwH4UXI24mYH/AQoeb/s6tS3uDio=; b=eSbyKk7VFfmDVpuVg3kJ8F5QFp9ZhqUdy2Hbb238tAinEhtSWC/U/YA2OSSioLK81O 6pbmxADVstSZ9LF8WDwMt/nToo9iI8fs2eU/a1TjQmPemu+zMOq35jRStB5ruvBAPZEv Z35z2lFFRdj8ujlslia3JpDokF5i5zQwW//h67aaygr4USeOgWCJbvw7ySUMT/0+OJb5 ywQSueBDkwWD4QUIAtxY7YUsT0EWQY2gDn41E1cRNMsG87bUnKxGZSlaTcsGA4ugp1z/ Qg3lgtqh4HYjdEiY0d3sJkyaizBe7ueV5hlbfOSSyflwolSBBb1KYRYkM/RlnnEwUoBO G7Gw== 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=NmXowNV1NXDr+TsZwH4UXI24mYH/AQoeb/s6tS3uDio=; b=nNwicverxlRAQekSwQoxOxiUFX8l9Y24mjW96EK42mPcuLvbHbJvgsc4FPR1n2zXro FjIJFmfaHkIdeuTdnjrTPo+xE+gAQPMHMiX1obdZ1T6V7BUBLNwh2h470Wro/fq957mY 7rGNzuSWEQHPnvhDsfgbpQy16a+tElq+1djXoTI1ZKqoxi4v1w0VegiZkv/oiMmnBE3o hxzytzI8lMo9PHeyeFKCYWuhnxQyDtkCgz9Uyft+VG+0HeiDG5HOLGKLAGOGkUC1a0GR +Q5yVndmphjv8CAHjlVWju0eoCOYGREAuRrIQRRKjinNdqC1kZ190O3pfU8H2dn2+HUq Q2uw== X-Gm-Message-State: APjAAAUvOdghURSjjM0zXl0UkZx8CDhJCzTXR3Vlqa58U6KDzNoQBB0H HViIHtKiMvfrvaf+O9N7lQnCzw== X-Google-Smtp-Source: APXvYqwI1dfII26i8VLIDQk04jvH0LsfF/tGRDjK7kUVinPpI2fFkYxCOoQ5zZFIUqLSmZp2MFFIUA== X-Received: by 2002:a0c:c98c:: with SMTP id b12mr26295015qvk.240.1580937230777; Wed, 05 Feb 2020 13:13:50 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.56.96.77]) by smtp.gmail.com with ESMTPSA id x6sm416361qkh.20.2020.02.05.13.13.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 13:13:50 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 522FD300AB8; Wed, 5 Feb 2020 18:13:02 -0300 (-03) Date: Wed, 5 Feb 2020 18:13:02 -0300 From: Alvaro Herrera To: Tom Lane Cc: Mithun Cy , PostgreSQL Hackers , PostgreSQL mailing lists Subject: Re: DROP OWNED CASCADE vs Temp tables Message-ID: <20200205211302.GA32650@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200123171423.GA25918@alvherre.pgsql> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jan-23, Alvaro Herrera wrote: > This is not a 100% solution: there's the cases when the user is removed > from an ACL and from a policy, and those deletions are done directly > instead of accumulating to the end for a mass deletion. > > I had to export AcquireDeletionLock (previously a static in > dependency.c). I wonder if I should export ReleaseDeletionLock too, for > symmetry. FWIW I'm going to withhold this bugfix until after the next set of minors are out. I'd rather not find out later that I have no way to fix 9.4 if I break it, for a bug that has existed forever ... -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services