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 1tmWk8-007MU3-KQ for pgsql-admin@arkaria.postgresql.org; Mon, 24 Feb 2025 11:35:25 +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 1tmWk7-001Wws-OL for pgsql-admin@arkaria.postgresql.org; Mon, 24 Feb 2025 11:35:23 +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 1tmWk7-001Wwk-Ba for pgsql-admin@lists.postgresql.org; Mon, 24 Feb 2025 11:35:23 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tmWk4-000T1I-1Q for pgsql-admin@lists.postgresql.org; Mon, 24 Feb 2025 11:35:22 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-388cae9eb9fso2160919f8f.3 for ; Mon, 24 Feb 2025 03:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1740396920; x=1741001720; darn=lists.postgresql.org; h=mime-version:user-agent:references:in-reply-to:date:to:from:subject :message-id:from:to:cc:subject:date:message-id:reply-to; bh=UZ/kdgRucOyAUKEWBc0Hnpu3IKKDG7t+LNAPYdvu/wc=; b=LU7/b0WvkhYNIckFfzBQe7DyBBRXTCjX0nmke7D33BYwFdzO/c/q+xjZFymSt73OQ4 /rsgZ7Zg8Da973099bQaTFb6aZXYSd3eGxZNjf079pIzx1QSf7xfTvoxZpCM3++PXLpk YcctnFbbHPCF7fhcNL9MSNdhetbUQY8q+303pEQXSDHwi2W990rUTzVyDkq/Ssn/P7Qx 25X9id3cbRqXkm8fEe31TlXxYYqn3vwOhbbwhtz4gM2rwH3qTkc/Bp3ZvLKs2wVDXZ7/ y6pwgXhzRfGgi0Fu1q+TDRlv+0y33XMZr0tLmER2DVfQ1kYgmRS4aAQuczmjud5dJM4F QOQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740396920; x=1741001720; h=mime-version:user-agent:references:in-reply-to:date:to:from:subject :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UZ/kdgRucOyAUKEWBc0Hnpu3IKKDG7t+LNAPYdvu/wc=; b=mTuDTuCPeWL6Ev6Z1rhHODxf+QyIaMPQb8oXsttLb7ItAe2zHhf4JbluCm22xzVdaY MIjVqKtacRPjWMsTPTavvxfzkRJc62qYp2to2zhm1pG2tvEyTe9okvQc8NK9/AIDvfoF fJm1G9AbBr/QUh7Q++Cm/x+ZwZKg8gOHogxeRLpAgsMn4gx4d2Jgwtg/2Pvs0iRNceyT HnvE9WzVfu0T/7v58JaDpV5vtRHUyzradHIWFCpWhe51BFxgy27t3Sdb6rycDF/lx3QB yLxGphXebgUdra5SAEoxcFBggHoYtyJcEtsw6PVupHoqqhvPvfUHP4wXvNfykeVE79cZ wE3w== X-Forwarded-Encrypted: i=1; AJvYcCXT0vUVcVCg9r1T5hIOq/Mpx0ELFmDVfL9ye3092ZIlUnQ0duWPA8TVBhcOrRB4ncZFTRAmg/iAwQGkwQ==@lists.postgresql.org X-Gm-Message-State: AOJu0YwxzI35mLDR7JSCA/oTB0Ap9cTGMqRLI7mFlDT0PET054IzzOEO mmqu1aI0LV6U9OKZuqZegIzGrzDpHEsQIjMFvQkVGqE8SDRgfoG5U9jO+7tb+sKGRmxEmwV6IcG Z1+ERAmlcgnzPpMyAdUu218QlUHyLAgVqvArUlsGDcVQ/E9uCqPgEDf7L1pO8RSEMFp1nb7k2j7 w= X-Gm-Gg: ASbGncv8CkwCp1+5EodD7Au2xMiGBc5UkgRm6KTQooHoB389QOR0NWBlAbhQUrATjHT z8GfnQckyk9dpva2dwIHmttyVfa9VH9TsuLNybXa0X2Uv0uGDNnUKD9lbPK4nfdBaDK0PUiSbwA fD/AiRy3JvNOS/qxg0MGQRZrI2aF2FiXI0OyfEcHRY5uZNzKkeX+smSucpiPp208d+8E0j+SVRl XMr8kGJJNE8z4H9Zlj2QaFFzRQ9Wlo/r+vMHhjpIhE/96EWwxw4OEr8/mGrx1MyLKVqgJ7/R+wM GzdUnRtC2/FFfX9jz9m+ataAKj3AUJA6ooX2Qf3yz6ZLJw== X-Google-Smtp-Source: AGHT+IHARvZyWd13lGReyM5tpLgSs47D28PD6G+gdtILJUckYV5+RB37Nv4ENCQE65vIEH458bgILQ== X-Received: by 2002:a5d:6d84:0:b0:38d:e61a:bc7 with SMTP id ffacd0b85a97d-38f6f097d06mr12176618f8f.40.1740396919901; Mon, 24 Feb 2025 03:35:19 -0800 (PST) Received: from localhost.localdomain ([2001:871:5e:381d:19e6:2832:a3b1:b1ce]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38f259d5f4fsm31341693f8f.78.2025.02.24.03.35.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 03:35:19 -0800 (PST) Message-ID: <8719938ad0b65691836eb898c80da170ae9b54b6.camel@cybertec.at> Subject: Re: Question about pg_dump + pg_restore + pg_toast From: Laurenz Albe To: Edwin UY , pgsql-admin@lists.postgresql.org Date: Mon, 24 Feb 2025 12:35:18 +0100 In-Reply-To: References: User-Agent: Evolution 3.54.3 (3.54.3-1.fc41) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2025-02-24 at 22:19 +1300, Edwin UY wrote: > We are upgrading this database from v12 to v16 and we want to do a dump of it in case we decided to do a restore from v16 to v12. > SO, after the upgrade, in case we want to rollback to v12, we will do a pg_dump using v16 and then using v12 pg_restore Be warned that downgrade is not supported and restoring the dump to v12 might well fail. You might have to manually edit the dump file until you can restore it without errors. Yours, Laurenz Albe -- *E-Mail Disclaimer* Der Inhalt dieser E-Mail ist ausschliesslich fuer den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail unzulaessig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen. *CONFIDENTIALITY NOTICE & DISCLAIMER *This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and solely for the use of the person(s) or entity to whom it is intended. If you have received this message in error and are not the intended recipient, please notify the sender immediately and delete this message and any attachment from your system. If you are not the intended recipient, be advised that any use of this message is prohibited and may be unlawful, and you must not copy this message or attachment or disclose the contents to any other person.