pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tsunakawa.takay@fujitsu.com <tsunakawa.takay@fujitsu.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Amit Kapila <akapila@postgresql.org>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: RE: pgsql: Add a new GUC and a reloption to enable inserts in parallel-mode
Date: Thu, 25 Mar 2021 01:25:28 +0000
Message-ID: <TYAPR01MB299096757A1C2C6E265E50BDFE629@TYAPR01MB2990.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <CA+TgmoZOA7Co=6OrGrQ0Bu=xa4TtJ4SJb-vF3GQ32oAziCxTng@mail.gmail.com>
References: <E1lMiB9-0001c3-SY@gemulon.postgresql.org>
	<CA+TgmoY0GdS7POPWB2nG3yiycNeLz05Mw53NunOjn8f8rZZuxw@mail.gmail.com>
	<558385.1616423602@sss.pgh.pa.us>
	<CAA4eK1+vRWCjMyNJKi+Jk=aOVdH0OuD+ShxTFXchHKH8=yTN9Q@mail.gmail.com>
	<20210323191307.twhewx7vqj2ocglv@alap3.anarazel.de>
	<CA+TgmoazkgAyyMiOy7t2cCRX-VpWUULAOxx+5mb92WCTvkyDmA@mail.gmail.com>
	<OSAPR01MB29778635FA73F653E1A82DE0FE639@OSAPR01MB2977.jpnprd01.prod.outlook.com>
	<CA+TgmoZOA7Co=6OrGrQ0Bu=xa4TtJ4SJb-vF3GQ32oAziCxTng@mail.gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
> The amount of code isn't the issue. I'd rather expend a little more
> code and solve the problem in a better way.

Reading your reply to Andres-san, I feel sympathy about your attitude.  Maybe we should outline the (rough) design first, discuss/guess its complexity, and ask for opinions on whether it's worth expending our effort for the complexity or choose an easier hack, considering the assumed use case and ensuring future extensibility not to prevent smooth enhancements.

With that said, I think the easy hack this time is good, because parallel INSERT/UPDATE/DELETE will only be used infrequently (compared to short OLTP transactions) for data migration and batch processing where the source data is ample.  I don't think of a use case yet where we want to make parallel workers allocate an XID when only necessary.


> I did not mean to give offense, but I also don't think grotty is a
> strong word. I consider it a pretty mild word.

Thank you for telling me the impression of the word.  TBH, I knew the word for the first time, and looked it up in English-Japanese dictionary. It didn't give good impression, and grotty sounds somewhat similar to grotesque, so I got worried "Robert-san may be angry."


	Regards
Takayuki 	Tsunakawa
						



view thread (37+ messages)  latest in thread

Message-ID: <TYAPR01MB299096757A1C2C6E265E50BDFE629@TYAPR01MB2990.jpnprd01.prod.outlook.com>
Permalink:  ../TYAPR01MB299096757A1C2C6E265E50BDFE629@TYAPR01MB2990.jpnprd01.prod.outlook.com/
Also on:    postgresql.org/message-id/TYAPR01MB299096757A1C2C6E265E50BDFE629@TYAPR01MB2990.jpnprd01.prod.outlook.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tsunakawa.takay@fujitsu.com, robertmhaas@gmail.com, andres@anarazel.de, amit.kapila16@gmail.com, tgl@sss.pgh.pa.us, akapila@postgresql.org
  Subject: Re: pgsql: Add a new GUC and a reloption to enable inserts in parallel-mode
  In-Reply-To: <TYAPR01MB299096757A1C2C6E265E50BDFE629@TYAPR01MB2990.jpnprd01.prod.outlook.com>
  References: <E1lMiB9-0001c3-SY@gemulon.postgresql.org> <CA+TgmoY0GdS7POPWB2nG3yiycNeLz05Mw53NunOjn8f8rZZuxw@mail.gmail.com> <558385.1616423602@sss.pgh.pa.us> <CAA4eK1+vRWCjMyNJKi+Jk=aOVdH0OuD+ShxTFXchHKH8=yTN9Q@mail.gmail.com> <20210323191307.twhewx7vqj2ocglv@alap3.anarazel.de> <CA+TgmoazkgAyyMiOy7t2cCRX-VpWUULAOxx+5mb92WCTvkyDmA@mail.gmail.com> <OSAPR01MB29778635FA73F653E1A82DE0FE639@OSAPR01MB2977.jpnprd01.prod.outlook.com> <CA+TgmoZOA7Co=6OrGrQ0Bu=xa4TtJ4SJb-vF3GQ32oAziCxTng@mail.gmail.com> <TYAPR01MB299096757A1C2C6E265E50BDFE629@TYAPR01MB2990.jpnprd01.prod.outlook.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox