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 1ktrwr-0002Me-TR for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Dec 2020 12:48:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ktrwp-00062g-TB for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Dec 2020 12:48:27 +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 1ktrwp-00062X-Jy for pgsql-hackers@lists.postgresql.org; Mon, 28 Dec 2020 12:48:27 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ktrwj-0004Sy-I9 for pgsql-hackers@postgresql.org; Mon, 28 Dec 2020 12:48:27 +0000 Received: by mail-pg1-x530.google.com with SMTP id 15so7277399pgx.7 for ; Mon, 28 Dec 2020 04:48:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HR8qlHhg7yfAJiNM6SGmoMpix6Mqu+tE7IB6ER6E7Ug=; b=GwufF/sGfElecS79vewI/y18h0MMWpPS8IlimuoKX2AlrRDT648mX76DsF9EPs6dMW djGE7gGvmSn+zSUNlXTwc6hFjH6d+C4ZaXr7eiS3bU5049rIrk9R2uQ2zTqXuF/DiLsv bzSDpDHuMilpEQQtbmsKNlRvI/jJLX024J52gKkVUZqpzLQjHg8UfrW+DM4thBOPnmZ2 uogsGwSxA0dLcs4HzMi6Vfcfs1FZuoYWiJrEOnkWjDoDt0s/YiaEIssFuoW8rACUbjnC hhcZNcxg5jW0iZTheYYZYjQgabXxeCI6z3vbBqjX7kf9jbUJ/mRRjVwccdzmjVCAFys3 Lckg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HR8qlHhg7yfAJiNM6SGmoMpix6Mqu+tE7IB6ER6E7Ug=; b=CZs02/K3wjpPbP+v+84RMxXdtNBS0Vi7foBVBBFsWr++EN9/DHNi4MEycV6NCMRb6A L0mlS6IPSzVsNuLI/awDe/bDfvagBaXZ481vCHCSEycfGF8pam5xmFt8RU7PGVlE3gii PG3yOO9cqZrXHGbwlaJNaKhT4KX9A90Na+3wsBVECEwNzZf4sFv7bi6TUPEVFY4ScBPl iWarqjD7e6G6hG18QxHv/SE3o70SHKiE8FJnFD/cH6xVZnkKP8Sa9ZMKgfSrijeOC/sp /TRxySWBFwp3XyI/IslpvOCxOSSjY4rxnlqmtLc0ORihverkfSpPDptRvKkoM2KlNPVr WTTA== X-Gm-Message-State: AOAM532TydP8ugdokmOg0hUune/8W6u0pdXqLPPYaTBjnPGiRcvy1aIQ r43l0ZxEdsZU7tgfs5lhDxHMuj04lYns9KkrE4s= X-Google-Smtp-Source: ABdhPJzRJsT8jZMGmqRuKfdcirtY6Z/cdh0pTfEw8kHnvWg0GKJZ1opV5T4aX5FqMrdqOw9Ms28ISMW5pkl5FfWasbI= X-Received: by 2002:a62:25c1:0:b029:1a9:ee40:3fd3 with SMTP id l184-20020a6225c10000b02901a9ee403fd3mr40546924pfl.58.1609159699257; Mon, 28 Dec 2020 04:48:19 -0800 (PST) MIME-Version: 1.0 References: <20201217050522.GU30237@telsasoft.com> <20201217204442.GX30237@telsasoft.com> <20201218175439.GA30237@telsasoft.com> <20201221074725.GF30237@telsasoft.com> <20201225023958.GW30237@telsasoft.com> In-Reply-To: <20201225023958.GW30237@telsasoft.com> From: Bharath Rupireddy Date: Mon, 28 Dec 2020 18:18:08 +0530 Message-ID: Subject: Re: New Table Access Methods for Multi and Single Inserts To: Justin Pryzby Cc: PostgreSQL-development , Andres Freund , Luc Vlaming , Paul Guo , Jeff Davis Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Dec 25, 2020 at 8:10 AM Justin Pryzby wrote: > On Thu, Dec 24, 2020 at 05:48:42AM +0530, Bharath Rupireddy wrote: > > I'm not posting the updated 0002 to 0004 patches, I plan to do so > > after a couple of reviews happen on the design of the APIs in 0001. > > > > Thoughts? > > Are you familiar with this work ? > > https://commitfest.postgresql.org/31/2717/ > Reloptions for table access methods > > It seems like that can be relevant for your patch, and I think some of what > your patch needs might be provided by AM opts. > > It's difficult to generalize AMs when we have only one, but your use-case might > be a concrete example which would help to answer some questions on the other > thread. > > @Jeff: https://commitfest.postgresql.org/31/2871/ Note that I have not gone through the entire thread at [1]. On some initial study, that patch is proposing to allow different table AMs to have custom rel options. In the v2 patch that I sent upthread [2] for new table AMs has heap AM multi insert code moved inside the new heap AM implementation and I don't see any need of having rel options. In case, any other AMs want to have the control for their multi insert API implementation via rel options, I think the proposal at [1] can be useful. IIUC, there's no dependency or anything as such for the new table AM patch with the rel options thread [1]. If I'm right, can this new table AM patch [2] be reviewed further? Thoughts? [1] - https://commitfest.postgresql.org/31/2717/ [2] - https://www.postgresql.org/message-id/CALj2ACWMnZZCu%3DG0PJkEeYYicKeuJ-X%3DSU19i6vQ1%2B%3DuXz8u0Q%40mail.gmail.com With Regards, Bharath Rupireddy. EnterpriseDB: http://www.enterprisedb.com