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 1slIS4-006bf8-CY for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Sep 2024 01: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 1slIS1-005CKw-Tn for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Sep 2024 01:35:22 +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.94.2) (envelope-from ) id 1slIS1-005CKo-K2 for pgsql-hackers@lists.postgresql.org; Tue, 03 Sep 2024 01:35:21 +0000 Received: from mail-io1-xd31.google.com ([2607:f8b0:4864:20::d31]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1slIRz-000NUS-MK for pgsql-hackers@lists.postgresql.org; Tue, 03 Sep 2024 01:35:21 +0000 Received: by mail-io1-xd31.google.com with SMTP id ca18e2360f4ac-82a2a035b38so158029339f.0 for ; Mon, 02 Sep 2024 18:35:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725327318; x=1725932118; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=EuqVG4Sv31FR2I6+ktx7uhpG0F7WWBlIqL2MQwzpRsg=; b=TF1MBSl2sltmNh4bwHXjHu0xjDMJIGRL+2Vljin/A5sqjNi040MxXlekfgkj96IkQp B0RytT1Dp0sOFlJ0tzslKbKESdRn0Fx1uAEn17sEABEl0fCtxxgH9Mxt20M41ML/jwfz gj4h94MBi17esV2Mju7tXWlxiW1Pd3yRpDzjkzxzvJV5SBLSgW1uEQeFFoEQ3XFh2Y8c QOv01g2043h0LDdfYIkJBFwXpZQyzaAFT5XnciNQkiMpvXr525HSHzYiVBRKMnKYFKAw zWBoFfFCzAz9TxrquruVrWbTExgk+Pqg4tCry/YumA0PWAObXTkA2kCL36yX3Eg33nFK 6jsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725327318; x=1725932118; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=EuqVG4Sv31FR2I6+ktx7uhpG0F7WWBlIqL2MQwzpRsg=; b=RRHaBEBiSEFWpW/CpOfIqQe5jtXbJJ2SlIAR+Pibswd3xSndj0y4s+i2WAtd0dR+rS KlfI04KLeBnMrVUNtcpTLwKBQRSD8cs1wuCoFh+n4yAiO+VPfwJXjijcpOrf8KOGoyhQ 42WndQ/95wIfbP5+r6/jhI5QIaCFDI40Le7u3jyfmGyj2Q4DBeWzuhqnh3XHAgKXNv1S yWuxJQyvSwXxEmpRMnT457FGj49KMaxQ3yRRgX4oFkTHE+Rv0S7JX/HsNc6hSJ8UNGP8 kB/SsyfOibgi+dSrib5PqZoyGh6tV9eTJb1Z/MqmrXCf+7jtB806+ulkR4Pc2uIu2xfq x03A== X-Forwarded-Encrypted: i=1; AJvYcCWYZDKUgL8T7Ug08/0a1OlNsszqnN8by721UEdvHzPxY9LzD43GwKvJDZNZADDE7+COnk/EADf641s4hVsL@lists.postgresql.org X-Gm-Message-State: AOJu0YzHxzUf92BvGoW1gdmz3RlgwzyacWr3H9Wd7fHgIJBUmBaaLVE4 q3+oYzVfVmcwXQyNvADTctgJF0jiUZdRMXkmVZNqNhZnHWQoQKpN X-Google-Smtp-Source: AGHT+IHEaSPTo5x3CPjLBR1yLagoGx9TsmlMy8mf558+XJHbVYpK2jGiYpmS/lsBNB1drl1YOtLuAg== X-Received: by 2002:a92:c54a:0:b0:376:410b:ae69 with SMTP id e9e14a558f8ab-39f4f52cf9bmr108796405ab.15.1725327317792; Mon, 02 Sep 2024 18:35:17 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-39f3b03ff1csm29128765ab.61.2024.09.02.18.35.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 18:35:17 -0700 (PDT) Date: Mon, 2 Sep 2024 20:35:15 -0500 From: Nathan Bossart To: Michael Paquier Cc: "David G. Johnston" , Postgres hackers Subject: Re: Partitioned tables and [un]loggedness Message-ID: References: <20240424202640.GB861150@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Sep 03, 2024 at 09:22:58AM +0900, Michael Paquier wrote: > On Thu, Aug 29, 2024 at 09:49:44AM -0500, Nathan Bossart wrote: >> IMHO continuing to allow partitioned tables to be marked UNLOGGED just >> preserves the illusion that it does something. An ERROR could help dispel >> that misconception. > > Okay. This is going to be disruptive if we do nothing about pg_dump, > unfortunately. How about tweaking dumpTableSchema() so as we'd never > issue UNLOGGED for a partitioned table? We could filter that out as > there is tbinfo->relkind. That's roughly what I had in mind. -- nathan