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 1vRBbg-008pdz-2w for pgsql-docs@arkaria.postgresql.org; Thu, 04 Dec 2025 15:51:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vRBbf-003GFf-33 for pgsql-docs@arkaria.postgresql.org; Thu, 04 Dec 2025 15:51:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vRBbf-003GFX-2D for pgsql-docs@lists.postgresql.org; Thu, 04 Dec 2025 15:51:00 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vRBbd-0037vM-2C for pgsql-docs@lists.postgresql.org; Thu, 04 Dec 2025 15:50:59 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-b79ea617f55so197614566b.3 for ; Thu, 04 Dec 2025 07:50:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1764863456; x=1765468256; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=pgQtn+yPiFbyqcsKRdd7XwFCsOtv2+GVEYPE6ZAaIMo=; b=N2xBA1G2IGFoPFr55RLL6ncJuO5gClm7JW+JOLBcIGu3TwI4WGExY6prFqglrs2nx4 hCKEdrKq06cgrtZq+e513yMHt1AJ/iTVXwdnxJrAp9ZeGtgJutR2DSF7yaz+NrQ6G0u3 mriWFK7bMqxWgX1dIRB0Ifwp0OTCfNvIUIRQVS6CKADFhjNyrYOcF0yjzs4RnYtBlB4/ Mz3EJ6qZWG1d24eP1kawPvpmTmcvcbuYuE8ZF1at4Q5hNKIY80c5S18mE5Ai0ynNvRWi Q2Azzk9myGoBUsLfBYPUNB0E3l1xu7qEDcyACiEebM+0O7cwuFeo6ACaMfYk+BBDSoig G0qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764863456; x=1765468256; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pgQtn+yPiFbyqcsKRdd7XwFCsOtv2+GVEYPE6ZAaIMo=; b=qcB6rT6nWEys/vTUnP8D5a7rc1dTwwLKa0weF8qBB4z746fL8q6UQvr5QLlw0yqsNQ zz5Bx295vFFSTOoKC619NCwXyn9T7bXFekRfuSwvm078qhf4Z7Foxh+RGJWab1WAaowu B9BNAQyXDmvUldTHAPbIeClBdXzkglXCjUgX1gWyoNYdk40TCzXBZv4/nB3JDNj5+CbA 1pT697+EyLQLkQ52b56GuJO9Gg5kTfBnh+M7fkCrKKjz9gKszAVRlA3sCsEOKmVtoOpC rgSr5bkse8y0UoRsRjkypyqcWwCcNreEPcfiuCIBH93j6inDxDQx9Cny+R9v8vMlX2x+ 32Lw== X-Forwarded-Encrypted: i=1; AJvYcCUtU2DTYntBvJZMVBABY0FxX075aQPrQXYZlpcmbEqby0IabP8RQxDIPzze9U+fp9icHZwb0r9/HUvd@lists.postgresql.org X-Gm-Message-State: AOJu0YzO/dRlzL1Z42a2X6tcP8hNUjcUREJjuw8lwGvoBCErKhA47FEk PDDhC9RnTSuglA42CJTwLFrhwMMaOapMtumkuXRQ/mA1Xkg/VJa+XzvUF7EJH/uYvEE= X-Gm-Gg: ASbGncs6agjhNnwFFGN5Ynsdps9r5xHcVZhX/xHmInieZI7jCWOlm3cIvCIc80ELjz2 nu1Giwxtv1nxfvISxyzXvubiDR8MRcAFO3srRHCUDJR5kKWhUeLJ4K44ZGJA0cDeO8T07KLhfqr kZz3jrdAzBni80gXXPj70cLALLYeeSCaNch/jvF5Qi01fYuE+kC8k1FfRbnOtpIfxiJOfjjj5hI 3lj/a5q1kF9jVe4217MJwVQXuxaSQkbm1jAgAK96qWl5+WKsnuoZlGuqh6aRvVTrxMY2AU7cPUd Jyi6mIvm2f8kn1Yut5Ui8LHNIZ7AhkZoJGC4J3pmErGF4PFdnb2Hr3TmqE0TZsGrZ0/5By5nxjc CUgW1ncS+xMcnCOjdewC9JibL0JnBWXTecMGoIfR0LsqsnIx4HMqpjNXVsZqPcfLJTunHHOiSKr 531/UwEnQ9SUWtqsMmPaF7ZJYFAu8kVxYZsCwcsxw= X-Google-Smtp-Source: AGHT+IFhLRJIrSSEcgHFHLEzXYyABpi5edTvfuwAVaPDvh0cilvWxWTbk+e1neA7H0KXUp/82eorBg== X-Received: by 2002:a17:907:7f93:b0:b73:7974:94bb with SMTP id a640c23a62f3a-b79dc75888cmr666886166b.46.1764863456101; Thu, 04 Dec 2025 07:50:56 -0800 (PST) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:70:17b:2be0:21e3:e78d:ae73]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-647b368dcebsm1624197a12.21.2025.12.04.07.50.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Dec 2025 07:50:55 -0800 (PST) Message-ID: Subject: Re: Documentation clarification request: pg_dumpall and Large Objects From: Laurenz Albe To: "Radoulov, Dimitre" , pgsql-docs@lists.postgresql.org Date: Thu, 04 Dec 2025 16:50:55 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-2.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2025-12-04 at 13:12 +0100, Radoulov, Dimitre wrote: > I would like to request a clarification in the pg_dumpall > documentation regarding Large Objects (LOBs). The current > documentation does not explicitly state whether pg_dumpall includes > Large Objects in its output. >=20 > This behavior is clear from the implementation, but not from the > documentation. >=20 > I propose adding an explicit note such as: >=20 > =C2=A0 "pg_dumpall does not include Large Objects (BLOBs). To back up > =C2=A0 =C2=A0Large Objects, use pg_dump -b per database." At the beginning of the "pg_dumpall" page we see: pg_dumpall is a utility for writing out (=E2=80=9Cdumping=E2=80=9D) all P= ostgreSQL databases of a cluster into one script file. [...]. It does this by calling pg_dump for each database in the cluster. And the pg_dump documentation says: -b --large-objects --blobs (deprecated) Include large objects in the dump. This is the default behavior except = when --schema, --table, --schema-only, --statistics-only, or --no-data is sp= ecified. Since pg_dumpall dumps the databases (and not parts of the databases), it w= ill automatically dump large objects too. But I admit that you have to go by circumstantial evidence here. But rathe= r than explicitly naming large objects, perhaps it would be useful to add som= ething like pg_dumpall is primarily intended as a tool to upgrade database clusters. As such, it by default exports all data of the entire cluster. The only part of the state of a database cluster that is *not* included in the output of pg_dumpall are the configuration files and database para= meters changed with ALTER SYSTEM. Yours, Laurenz Albe