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 1izpG9-0003QZ-Ix for pgsql-bugs@arkaria.postgresql.org; Thu, 06 Feb 2020 22:04:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1izpG8-0001S2-Af for pgsql-bugs@arkaria.postgresql.org; Thu, 06 Feb 2020 22:04:28 +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 1izpG8-0001Rv-26 for pgsql-bugs@lists.postgresql.org; Thu, 06 Feb 2020 22:04:28 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1izpG5-00060N-9I for pgsql-bugs@lists.postgresql.org; Thu, 06 Feb 2020 22:04:27 +0000 Received: by mail-qt1-x843.google.com with SMTP id d5so377539qto.0 for ; Thu, 06 Feb 2020 14:04:24 -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=7xjagqkbDSBVlA9O3dOQOzbcUEygpPy/ZZBbb3amkKY=; b=pYAPneBTOt1R6osQxhiZ+QwYj5Ib4Q9cmKxtFZ8qoEn49JIHKn3qN7tdTxZjmzfmSs 2kjlDkxqjXIa+0NnWeHNEfWKhkco7ny2Ixw0doaMG+boCIsK27F/94ZphRtAdx3PeQsX b2JU19PEJ6YyTSFi1tcu//yJakBbDmwWrLTWd4XqqHX630pYX0AxcTAvk3D65Beh9d1F omrqqadOTRJxfo8u3+XIkJ03knh0zJ03bulgLT+mqQIDjcKv2wrr8UztL5J5GeAtgePh UgEUsSbalD/m/pORDiqHBIbiHTu47uPaxmMeGBTi1OX7roLqymE20xlz3+UQ6gwEetqb n/Rw== 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=7xjagqkbDSBVlA9O3dOQOzbcUEygpPy/ZZBbb3amkKY=; b=D31bDAiVApj+MMAz8ebDmsH01Unov158zuchpogtRxS8ABMZ3/V2/26uUPsE1KBycL XTQccaPL2hHHxqVrsbmyuXphyvA5j3cM5T8RELIPocqFTHl1JQuZlJ1wLJ8aLFp48Trh JWUopOw+m5Ul01CWM51URUdtP6fRf1u9v4q4xK2jYjVXCkGoG+rza3Nsh4FzQ4FUrBYw MRrOyeXVmOFo0m/9Q1cv54yf4ndOne4n/BFa/ASpBOSiMmcp81H2d5wY1/es+w1SKhGb hU+K0kb37UNr59m1lTNLLtQAt50d4Gtskgw21i47BmOh6unUlKxd71bWk1P/a3kmIIFr M+zQ== X-Gm-Message-State: APjAAAUr/iLPVzzbSxrBhpD8c28NtlEYbdu1D4ELYeD9IWJ+4OeLBO+C a9GWt4XJj8wGI7rJ3kg9yr5prQ== X-Google-Smtp-Source: APXvYqzmDWiv9RiO9JQWNEK/LvutOSGj8fH2B24A7Q1UihjrwQTYhgTruRCtUATiUT3XJKwDIz8nEQ== X-Received: by 2002:aed:2321:: with SMTP id h30mr4742043qtc.355.1581026663622; Thu, 06 Feb 2020 14:04:23 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.56.50.157]) by smtp.gmail.com with ESMTPSA id a145sm303752qkg.128.2020.02.06.14.04.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2020 14:04:23 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 56F4C300807; Thu, 6 Feb 2020 19:04:21 -0300 (-03) Date: Thu, 6 Feb 2020 19:04:21 -0300 From: Alvaro Herrera To: Jehan-Guillaume de Rorthais Cc: pgsql-bugs@lists.postgresql.org Subject: Re: FK violation in partitioned table after truncating a referenced partition Message-ID: <20200206220421.GA31713@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200206220005.GA31399@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-Feb-06, Alvaro Herrera wrote: > I do wonder how do other RDBMSs behave. I think this is relevant, https://docs.oracle.com/database/121/VLDBG/GUID-FEAAC43A-1066-4697-8474-863181FE4F38.htm but offers no useful guidance. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services