Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jb1yK-0000pA-JQ for pgsql-hackers@arkaria.postgresql.org; Tue, 19 May 2020 13:07:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jb1yJ-0005IR-Hg for pgsql-hackers@arkaria.postgresql.org; Tue, 19 May 2020 13:07:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jb1yJ-00055t-5F for pgsql-hackers@lists.postgresql.org; Tue, 19 May 2020 13:07:51 +0000 Received: from mail-qv1-xf43.google.com ([2607:f8b0:4864:20::f43]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jb1yC-00078I-Ek for pgsql-hackers@lists.postgresql.org; Tue, 19 May 2020 13:07:49 +0000 Received: by mail-qv1-xf43.google.com with SMTP id z5so6413472qvw.4 for ; Tue, 19 May 2020 06:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TQE9UkoxXvpzuEUtgpImQA8OhAZfec4eI+ot3qdQSps=; b=tyjzpwf838vkSj+rRw4vwjf71SK8+yBy0avLzjTLnZoQBwK9mVEUxI7b/NjkEqlEO0 K5yutsVne6eRGig0J2AfyeQg5dBcy79TxNq8aifkHC50fl5nN48BoIrDTWH/rBPhEg8e 1XloncurP6ihV5Qb4ljcvj19AMVWrSTh8heUEytQN7Y0fgrGcbkFNjIfYUtGrLj+S8ZE JQ45K8GBVPGYKAK7zL7W6Utd7K0uIlcsme3dW0MF/LQnZW8yxcrEK2YP1CXPFoiwAlGw kYZHELT6toy/fCTelw4L6ohrTAUdJ8fxaC7GPwQUXCn28h3eNGon9XOtR2ypL4Obzmw9 9/FQ== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TQE9UkoxXvpzuEUtgpImQA8OhAZfec4eI+ot3qdQSps=; b=q6EUTrc5xlz8/4pPf+s8tsTfdiU+r/Na3w7xB97KPi3Hje7fGnaK4MmGvgbGZLR451 qilO4v9wQ9DKSV6XQkJqgAYlTvhMmofkyuXDt3nLVLh0GHKqPjXbDuWsdqK4KjRJIvnP bgkiq70VteUsQe+O+1ZGxbUPipNDMwsrn2saYsbLRWVDGhYJoHvlDRcr6YQlqag00WIj b9LwCZM2cJgu/dAshp0DkdjwTmJK0vKNlx0ZMP8bhtYdF58Z3nae+IU9dErwCRCchrpw JHZhyLwhUt8XkXV/SBBp5KBZIG85bAQmjJHYOVXhS1kEA6uw6GIIhTQH9zNTg5U452SS Kbnw== X-Gm-Message-State: AOAM532eDqkNtvL9IeW+Jn86y6UGb9bHt5MJlOZhUJ6veRDuUm/qLxV9 PVDIWAtue3RNCJr2rQXpIBZvnw== X-Google-Smtp-Source: ABdhPJzJ6bt4jDtcDzrt7jR65OC87CKl6bmME3m3g0r19C3UFv5AgYvpPjktmK2vl38UN93B1wDJZg== X-Received: by 2002:a0c:ca08:: with SMTP id c8mr10462723qvk.237.1589893662935; Tue, 19 May 2020 06:07:42 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id r39sm3944026qte.47.2020.05.19.06.07.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 May 2020 06:07:41 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 61C24800828; Tue, 19 May 2020 08:07:40 -0500 (CDT) Date: Tue, 19 May 2020 08:07:40 -0500 From: Justin Pryzby To: David Gilman Cc: pgsql-hackers@lists.postgresql.org, Tom Lane Subject: Re: Warn when parallel restoring a custom dump without data offsets Message-ID: <20200519130740.GO18456@telsasoft.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, May 16, 2020 at 04:57:46PM -0400, David Gilman wrote: > If pg_dump can't seek on its output stream when writing a dump in the > custom archive format (possibly because you piped its stdout to a file) > it can't update that file with data offsets. These files will often > break parallel restoration. Warn when the user is doing pg_restore on > such a file to give them a hint as to why their restore is about to > fail. You didn't say so, but I gather this is related to this other thread (which seems to represent two separate issues). https://www.postgresql.org/message-id/flat/1582010626326-0.post%40n3.nabble.com#0891d77011cdb6ca3ad8ab7904a2ed63 > Tom, if you or anyone else with PostgreSQL would appreciate the > pg_dump file I can send it to you out of band, it's only a few > megabytes. I have pg_restore with debug symbols too if you want me to > try anything. Would you send to me or post a link to a filesharing site and I'll try to reproduce it ? So far no luck. You should include here your diagnosis from that thread, or add it to a commit message, and mention the suspect commit (548e50976). Eventually add patch for the next commitfest. https://commitfest.postgresql.org/ I guess you're also involved in this conversation: https://dba.stackexchange.com/questions/257398/pg-restore-with-jobs-flag-results-in-pg-restore-error-a-worker-process-di -- Justin