Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npXVs-0003CG-54 for pgsql-hackers@arkaria.postgresql.org; Fri, 13 May 2022 15:47:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1npXUt-0007LD-1Q for pgsql-hackers@arkaria.postgresql.org; Fri, 13 May 2022 15:46:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npXUs-0007IN-KM for pgsql-hackers@lists.postgresql.org; Fri, 13 May 2022 15:46:30 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1npXUq-0000wZ-Eo for pgsql-hackers@postgresql.org; Fri, 13 May 2022 15:46:30 +0000 Received: by mail-pf1-x42e.google.com with SMTP id i24so8012193pfa.7 for ; Fri, 13 May 2022 08:46:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=SVbNIXMYt/+7gAiH9/ydVzIwpqcVVON+3gZtBk0zUwU=; b=GzP24zLnJH3tQSL0Ddx3oburaOAsW0w//b530GaI4pS+ux9V1HuY1h7dq1W8FsnrGb HfcaxdIZ9PVAM7UT94Eo7HlyOrgunWXlbXhO1gYDgiYsq0LypSWaS+kyohxlC+cXOcHy Wnn8mlUPxe90+MfoC0VSr2XuR5V2gqCHC3nFZDohcH3hT+e6pzeR21MxaPtFmvew8j6N upRGKpPK3V4K4qid3x4PZv8w1wDTGuIu6u+7kTleKE2RGfyh8V3B7j0CSTfFGoz9Elte t2gPRXyHMYl7wSM0d75Oilvz1+HDF79aCuStKwUKTYzAijEHDIIiUIxBKymleHIIhHY4 TM+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=SVbNIXMYt/+7gAiH9/ydVzIwpqcVVON+3gZtBk0zUwU=; b=1p00gp6Nmb24JD2FBHvo7AVkJLqetZfro51SXdIdKwvxzgbtzb4uHbrZoqbvIvOKot p21x+M9xq70+DNoKF6EeQ+ZFPudJ9buimq6uBmAbtzg1hlHKxM2aISHkB5o368VdYq9D 45o97Gn1D0eUQLgZmE0vDtqPRIvK/GvZ8TF+xGCr14s+8hVZo/6T6B+xtCU7Bhk1j5Iu yJBVbH6gHkEO2QZ1NCRcGHzqPXzaCtN8zy9nvSv/pHYRxhbj5+BTzrKNin54cdr4OfRS SY7vHQbOniqG11Xn/dwx9gB7RFM4j1OsppgwIaVK6AOSBGeH3fMdtw4FdWmyknzwXYDM jDqQ== X-Gm-Message-State: AOAM5306nRVorgWCMHdYOFSoyv0y0OFVe8RCekGl2juWgYt6sInh9rEV LzUSaTVFRHbO3F0hA8Fsq8Nazw== X-Google-Smtp-Source: ABdhPJy7QYep4NT40sPHTnXKvyf78OTNF/EtAoHRmEmpC9ZUXgOKaVR18IwFmAlpQ3+ZdzpsfYttyw== X-Received: by 2002:a63:3e0a:0:b0:3db:d32:e306 with SMTP id l10-20020a633e0a000000b003db0d32e306mr4465031pga.178.1652456786141; Fri, 13 May 2022 08:46:26 -0700 (PDT) Received: from jdavis.lan (c-73-231-146-4.hsd1.ca.comcast.net. [73.231.146.4]) by smtp.gmail.com with ESMTPSA id b7-20020a170903228700b0015e8d4eb1f8sm2078477plh.66.2022.05.13.08.46.25 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 May 2022 08:46:25 -0700 (PDT) Message-ID: Subject: Re: Comments on Custom RMGRs From: Jeff Davis To: Simon Riggs Cc: Andres Freund , PostgreSQL Hackers Date: Fri, 13 May 2022 08:46:24 -0700 In-Reply-To: References: <20220512034010.4oqa76pasrulkw32@alap3.anarazel.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2022-05-13 at 13:31 +0100, Simon Riggs wrote: > The first was a discussion about a data structure needed by BDR about > 4 years ago. In the absence of a pluggable checkpoint, the solution > was forced to use a normal table, which wasn't very satisfactory. I'm interested to hear more about this case. Are you developing it into a full table AM? In my experience with columnar, there's still a long tail of things I wish I had in the backend to better support complete table AMs. > The second was a more recent conversation with Mike Stonebraker, at > the end of 2021.. He was very keen to remove the buffer manager > entirely, which requires that we have a new smgr, which then needs > new > code to allow it to be written to disk at checkpoint time, which then > requires some kind of pluggable code at checkpoint time. (Mike was > also keen to remove WAL, but that's another story entirely!). I'm guessing that would be more of an experimental/ambitious project, and based on modified postgres anyway. > The last use case was unlogged indexes, which need to be read from > disk at startup or rebuilt after crash, which requires RmgrStartup to > work both with and without InRedo=true. That sounds like a core feature, in which case we can just refactor that for v16. It might be a nice cleanup for unlogged tables, too. I don't think your 002-v2 patch is particularly risky, but any reluctance at all probably pushes it to v16 given that it's so late in the cycle. Regards, Jeff Davis