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.94.2) (envelope-from ) id 1uWL6z-00CRH7-Kh for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Jun 2025 20:28:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uWL6x-00288A-El for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Jun 2025 20:28:20 +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.94.2) (envelope-from ) id 1uWL6x-002882-0K for pgsql-hackers@lists.postgresql.org; Mon, 30 Jun 2025 20:28:19 +0000 Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uWL6v-004p8N-0w for pgsql-hackers@postgresql.org; Mon, 30 Jun 2025 20:28:18 +0000 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-2ea2fee5471so2743299fac.0 for ; Mon, 30 Jun 2025 13:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1751315296; x=1751920096; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=xR9XndWtc1q3Ypn57hBqLXJqrevXNf+nJGo6NFDD6Xw=; b=bjedmCqZjVTKqrz/gvKZ59gMSaH8e+OwRyBU+FyeKchRlH0+rbIReYgSAxc8ty6Ti8 K0TIjBeA8jVYroxoo5wspSGOQngQ4dLpDSzAM8E7oL4pBdfijJVPI8hUFgQhF0lOzNiE 1cZT4t9PliWN6lxfi7i8Sy9ZZzZkzduaDwthcmJkaMn8s7RIs+7GzSMpWUw+cBKIiaRg Unnkx2ss7C7E9GuFFNeKo0ynJcK1c64ytyXIgzwIRhj/PFBmA1wsrHCYBs4JYdycLFOF SQxaAcmj3UipGkHRUl5n98Hj/6yTpXFjxGpFjjhspaytjNanFqHfb6Q/9RmIvsEomCBP /l+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751315296; x=1751920096; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xR9XndWtc1q3Ypn57hBqLXJqrevXNf+nJGo6NFDD6Xw=; b=mOvFNab3bj8KxJMf2H3NRN/nO3FuwRSUvCt6y3ND3wBWFYr5tm74iIm/LGiPyvD8X8 U9GXPvfb57gLPQEEiMUbWETYe3MquWOVcoe1peXOouQp7YTmRW+NNc6d8ImugfYfmrdx 8cKyPES9A7sNc885i9tr3YrMZza1nqYHdLcpqrLEYMe46Aoa9mXnkzxJhg3L+uwu1jEZ UH9AKzfQ8K1MefKIFJaLjt5Muxp3tq5dOwpjBz7p8VajKVZvjMlTwHwBrG1wP001Iz2v hBL10Uk01l2B0Y9iP2Fm8l5DHGxlKUJMzOEpnLsWnIY7GbrO887fbF3XKw+gNsiosYyG v4Fg== X-Forwarded-Encrypted: i=1; AJvYcCXoOLZ4p7Qw/ngwE+XQuPFd374Qp7zDcjTKD8fo34I3/4/rlxTdrXuR4YjWqCXH9UijRFm8n/QcPLNuQiyP@postgresql.org X-Gm-Message-State: AOJu0YwgPlZX2vbTNAyr7FuI8b9FdWAAToZjLgnsWv6O2ZFvgZU8vKQX DczdWdN1dNWEsLp3NE0Kk2n24t4MQa+2mdpKotm7M8J917Zn05EwvdqI/FpPhBR2mg== X-Gm-Gg: ASbGncvZcH6Ea+kGhMmAkC8XLbDlwqaQW7sdtNFGc/+2UjCLTHEF0m8DRHkk3xohkWf 5Nm/PvdCjgYCY+NDYK6tG8+vtBHEtkJcdkasUGQyTKJwIx6gPpPWjo/R5L6UFcmt4f1W+jozv8v Keo1iNVXetzzofpF+r4IK4DjxyXqH0Ygi6+H6A3WTtsUrQrDEosQ5/2FY0sE1RpuATYtAJSheg7 quBJVjrurUAJ1/4ek/4jl2e70KSqofwbi4OLqF4QdZkfepFeloS+ENx/vVX5AooC7BrAoeZRoGL 9HndtSMw0qdUh1d7BEiKPjG06CrMGqHCCRHgPsuz6A5elrpno5J5JFgXCpXORuz0REKy1KBiK/p NEs0K6Z9+GsNnCBtI6/gg/I1EoWRPckeY X-Google-Smtp-Source: AGHT+IFxUHHQJo5xkAJAfDVJyA4MSPw2ETpE17+tBF6BKcOks+aLSfvGtG03kbE51RCH51CroughmA== X-Received: by 2002:a05:6870:938b:b0:2eb:a01a:11b1 with SMTP id 586e51a60fabf-2f3c04e5c1emr734115fac.9.1751315296149; Mon, 30 Jun 2025 13:28:16 -0700 (PDT) Received: from jeff-ws-bridge.lan (c-76-102-242-158.hsd1.ca.comcast.net. [76.102.242.158]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-73afb122b39sm1793563a34.64.2025.06.30.13.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jun 2025 13:28:15 -0700 (PDT) Message-ID: Subject: Re: pg_dump --with-* options From: Jeff Davis To: Robert Haas Cc: Nathan Bossart , Peter Eisentraut , pgsql-hackers Date: Mon, 30 Jun 2025 13:28:14 -0700 In-Reply-To: References: <7cc52488-f876-4ad3-affd-6e4b0ef0cb09@eisentraut.org> <7bf0246542713d80f12c738c1d365d1365750c18.camel@j-davis.com> <5e398522803da9bf3f9fc33ca43084ec21ab0fcd.camel@j-davis.com> <031558c60e84362898922caa6a90587e7fdf2a57.camel@j-davis.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2025-06-23 at 13:38 -0400, Robert Haas wrote: > What confuses me about what you've written here specifically is that > pg_dump and pg_restore are different programs with different option > sets. So when you say we need both --with-statistics and > --no-statistics, I guess that's true, but we're not talking about the > same executable in both cases. It seems to me that pg_restore should > restore everything that was dumped, but that there should be (as > there > are) various --no-whatever switches to skip unwanted items. But > pg_dump should have dump a reasonable set of things by default, and > the user should be able to add to that or subtract from it. True, we could have different options for pg_dump and pg_restore, but to me that seems a little strange because so many of the other options overlap. I figured that would be confusing, but maybe it's fine. Regards, Jeff Davis