Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w7KDs-005BaX-3B for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2026 21:32:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7KDr-006UJN-1O for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2026 21:32:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w7KDq-006UJE-34 for pgsql-hackers@lists.postgresql.org; Mon, 30 Mar 2026 21:32:35 +0000 Received: from mail-yx1-xb133.google.com ([2607:f8b0:4864:20::b133]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w7KDp-00000001rvR-1FWA for pgsql-hackers@lists.postgresql.org; Mon, 30 Mar 2026 21:32:34 +0000 Received: by mail-yx1-xb133.google.com with SMTP id 956f58d0204a3-65009bfdcfdso4779535d50.2 for ; Mon, 30 Mar 2026 14:32:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774906352; cv=none; d=google.com; s=arc-20240605; b=hRLQiGxhzcVXkIpC6nu1qny1LiiBp/bInj72aNPA6oslgfEzrmXRtfJXzY4JLWQoWv aCUiSd117gIDbhJM68FzkaXaXXvjJqZhpE6iaJefwQXiGSDQFhvUFGbanTPi9xN2MYGz SjjIOqkE4ZybR5DBUH5ef/FFdwSpmWWADUj+u1jKaqZXJlPOspN/1KySskQ7zZKUwKTh GIn9f25wMRdpBBsRLcycwIVruUnohk9mYDNSiHnx9gZBvPjk6Ab/QSGa/HvZgQRmsyFJ oo+nR87UYFvaRqVqSfDbLDTfLmU5f3n1xVeF6OYP4a3nG1a2IzKXazsRbgDLpPtvj3lI S0rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=hw7Y4tghlFBitWq0ZFzkEGi8K6aMM/0TAv5NOPlMyVA=; fh=czhfA77cs9ZW5hTTXIA+5OT9IHYVNXLuQFZKLAoaSBk=; b=g+VFBrMdn4MA0KxRzzEbMuxtX4z3bT6mS3kiRV5RNrBGdqZpoMCvSshrEVx23Bbr0U WoZthMhc9sZwTpAWsr96ikQfu8q6d8ijHNw5phEp19GnIzOFr1Vk1Ze+hN2aDent1ozW uuv0+x1dSkRl9DDwSaRWnHjvjNI0mcFGa+O6TAlM+/9VKHTGXRbeavn+QUPnjHI2n/ua v9X2J/A9KYA09YMeeWw/YKD7V7HDjITsNobdPLBS91fG3XDPr6VCnM+wSfz0y1bE5qfE 8HHJlYnNsubY1GI03tC4n0tynzaV4FaEpYKAUpg37yCzE3clH3PcQgs6w2D+6E194uOx moGw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=percona.com; s=google; t=1774906352; x=1775511152; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hw7Y4tghlFBitWq0ZFzkEGi8K6aMM/0TAv5NOPlMyVA=; b=GlH0yezhCzFGmn5mkbDpzKRINJ3F8wU6Z/aSOblDW6AziMnCJTyZ9443gNmMx9GosR sCQ5zLAQ/uiMx/jrS8uCDoeJwArWl0k3FnEeITVOIKqn2s+L9dsB3rllGZR0ZMMiRTOc NU1PkZOHC5F7avoSsjWJzXCNgwRaO7urUEcaY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774906352; x=1775511152; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hw7Y4tghlFBitWq0ZFzkEGi8K6aMM/0TAv5NOPlMyVA=; b=ibF77RH5LobB1xhLy3aDq38PXg6jII3o9kEYqJ+U4fpAqYSJV0q5ON4ChDJEnMWLfA frVbvHiltHc8naq6x1bKTstjbeJ2Z3k/2Sw41QBHColrJm1sREqLQ6peAFjkf2MbJdAi 9LYbccJxM/Jc/loxGBmiJPgQ3v62TRU00sELWCGZmmqW0v84ZhrhbTXoty60Mm6/1STt Bo77bZ3ddFFHpe2h5b8WkNRE7okcRiZJe624KH/De803g87O5NTXG+WyHVsqXoHmQTvc DT44UK98GhHwPu4zSl+68ra4c1G9q06GD7LqwhbZs4Afei2t6iDrbK7iAwtKXzUuSCZj 3l6Q== X-Gm-Message-State: AOJu0YzbCBI61PoOuEPkBfTF7YPsBh+rAreUTvhqaG1fYL7Hb6tN9OWm 1CIw/Nfo6QvFBekemrMDZf7rZ9jZ4nQJLfhaW6OyWALd2hcvB0s8q/3QJ3vdLqUO5+HslxRk/Ww 1vNN6dlc89SAYQC3vHDNf2QK8VHFkXHru4b9PiQqysOoBVBuwwueXfElFT4DDiatc0mmlxH+76B fAjsG65Zt//CxfnvHdsoV5wP3Q68GtIrVj4GFJ+3dEdrXgQHnhmxOS4/qG1MacymGpPUVWLWk7g NCXfb2Nbn5h5ySKb7ecK95lokkPqPRZJTpI/vCrqM/OktiebGev3INPWjdAAVjSERk= X-Gm-Gg: ATEYQzyBdyWnRtD8DxuTyNsHr9hfOigJ4vYO3/CRYioIVim1Zel6anK7nuEuD5AnwQO qgGuyK+3RaZn2tLKBuN1422gU5ZHLiZQ9AqlnRerLAOl9JSPkNdRTRrxuxk8KwUyW7Rn+G7H2r1 s6x9wgmaes0atnZFF+yVZFUq/nBYZ44Tbt5r9RHryDLgZI/DcTaCLctceP9g4XQ3uC4uRju82ZL BPfsYkTz+1NTwRxlz5VDgX0RnkelRUlkZWGRjxVCVA+MDDykhdn60X3c/AvP/4bVQC6CsXrkfMp 16YcEcyv95o2efcuTuZZ2Y5asEDuGTnIDZuIHCvWO6AyCuPlxmBO5anEaLI625sDJcCD X-Received: by 2002:a05:690c:6b12:b0:79e:766d:81ee with SMTP id 00721157ae682-79e766d8961mr59211977b3.3.1774906352295; Mon, 30 Mar 2026 14:32:32 -0700 (PDT) MIME-Version: 1.0 References: <69c7bad1.050a0220.346c9.c80cSMTPIN_ADDED_BROKEN@mx.google.com> In-Reply-To: From: Zsolt Parragi Date: Mon, 30 Mar 2026 22:32:22 +0100 X-Gm-Features: AQROBzA7_379EjC_JoO3IfgJW-1LBxCA-KtoOB9nzn9nX8uaFQFuoEJIuBoYvew Message-ID: Subject: Re: Patch: dumping tables data in multiple chunks in pg_dump To: Hannu Krosing Cc: PostgreSQL Hackers , David Rowley , Michael Banck , Ashutosh Bapat , Nathan Bossart Content-Type: text/plain; charset="UTF-8" X-CLOUD-SEC-AV-Sent: true X-CLOUD-SEC-AV-Info: percona,google_mail,monitor X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello! A simple test causes an assertion failure in my testing, dependency counting still doesn't seem to work correctly: pg_restore: >...>/pg_backup_archiver.c:5207: reduce_dependencies: Assertion `otherte->depCount > 0' failed. Without assertions it results in data loss. 004_pg_dump_parallel also showcases the issue in my testing. But simple manual testing also confirms it: 1. create some data CREATE TABLE tplain (id int UNIQUE); INSERT INTO tplain SELECT x FROM generate_series(1,1000) x; 2. create a dump dump with --max-table-segment-pages=2 3. try to restore restore with --jobs=3