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 1iwVNn-0006mL-5J for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Jan 2020 18:14:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwVNl-0001BC-M4 for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Jan 2020 18:14:37 +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 1iwVNl-0001B1-5g for pgsql-bugs@lists.postgresql.org; Tue, 28 Jan 2020 18:14:37 +0000 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iwVNg-0002r5-2r for pgsql-bugs@lists.postgresql.org; Tue, 28 Jan 2020 18:14:33 +0000 Received: by mail-qk1-x744.google.com with SMTP id d10so14331753qke.1 for ; Tue, 28 Jan 2020 10:14:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=0DmsTgnZzbthNCARfzvQBNMk2YZtSQtCyRLHvtiaV3w=; b=KLRdXKHustQjHwinGwh3v2AAeFyIdZNg5Crxe4AI2R512+qQalIdG998qcRQ/rxkZ+ YMOkWMOjTXg8iwOHdPV90/3eG9kAXlHj9z6GzkSWyzndM7v8cQtiPcvsq51Cfhe5fvBv RtyBl13TWAhDlTzPKVIGyiQXlBkZkXeMmIGVUhYwRyf0nhx2WndqeyDoybYo9jUIvL9w Hu2mmJVswjtJuckPQ2GRBN63wHcMc61/8sSyUK5jSyUEwJyFUuOTpvsmEYEOErXFnAex Xjk6/TDzPdRP1gei+x77f8oBdQgQqvmdRPm++5SCDU8q4egg+VpMJyIQlUQ/GiW9GM++ POpA== 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:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=0DmsTgnZzbthNCARfzvQBNMk2YZtSQtCyRLHvtiaV3w=; b=ZHWH+3uXyHrFUB4dz7RoCJP9A+8vEEY8amQZ3fl/hNqobZKj3QkDYX6zpkSQFYwtnr egUtn2n5ElGBLMomO8PaDD+vF7tC+4xG98/i8t2TVCb5CfR4o0G5mF5qVlOSytBpTIx4 oL6IYNLusafsuekAFoPXOlsDquOgonhZwRh0kcNVoUulqSTzoaSSRCOu6PF3Cr2AQoOn mlUmVNyhRjw5GujG3DAk8Ge57ugYVuqbahv5y8E7Csyxj1cza3eGyXLjpZ7RhF5Vw3lV mXqgZkYl6Eb4AkB0q48e9bDW8IYrGQY3Ck/ntwzU9XAWmT7Ccp1Zt5jzbze70hNvGxNF QbIQ== X-Gm-Message-State: APjAAAUK5utUQneOgjbnRXHZvBpAx7VAidhXBYTC5P/FX0hvve9KTG3T +Oj5klGxkHHs1LaLcAyt5LW3PQ== X-Google-Smtp-Source: APXvYqwKit6UhcuCoTcwqfkFyJTchm8QemPgs5eDdHaDT1rUjTQ9HySk3dOiX2me1fIbFt9Wpg3J/g== X-Received: by 2002:a37:d8e:: with SMTP id 136mr24062733qkn.293.1580235271132; Tue, 28 Jan 2020 10:14:31 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.217.217.220]) by smtp.gmail.com with ESMTPSA id w29sm13443382qtc.72.2020.01.28.10.14.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2020 10:14:30 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 3716D300805; Tue, 28 Jan 2020 15:14:28 -0300 (-03) Date: Tue, 28 Jan 2020 15:14:28 -0300 From: Alvaro Herrera To: dsnover@electrainfo.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16237: When restoring database, backend disconnects or crashes when foreign key is created Message-ID: <20200128181428.GA19971@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <16237-4b97757867332823@postgresql.org> 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-28, PG Bug reporting form wrote: > pg_restore: creating FK CONSTRAINT > "public.file_transit_transaction_file_transit_id_fkey" > pg_restore: from TOC entry 3972; 2606 4177792 FK CONSTRAINT > file_transit_transaction_file_transit_id_fkey postgres > pg_restore: error: could not execute query: server closed the connection > unexpectedly > This probably means the server terminated abnormally > before or while processing the request. > Command was: ALTER TABLE ONLY file_transit_transaction > ADD CONSTRAINT file_transit_transaction_file_transit_id_fkey FOREIGN KEY > (file_transit_id) REFERENCES file_transit(file_transit_id); Is any of these tables (file_transit_transaction and file_transit) partitioned? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services