pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Kohei KaiGai <kaigai@heterodb.com>
Cc: Kazutaka Onishi <onishi@heterodb.com>
Cc: Zhihong Yu <zyu@yugabyte.com>
Cc: Amit Langote <amitlangote09@gmail.com>
Cc: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org, Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Subject: Re: TRUNCATE on foreign table
Date: Thu, 22 Apr 2021 09:06:51 -0500
Message-ID: <20210422140651.GC7256@telsasoft.com> (raw)
In-Reply-To: <CALj2ACXFkT8UEHesn3g4WdqdL1tjxukwBExbQQ3HADKTzfb_4Q@mail.gmail.com>
References: <CALj2ACX7UYyg9tsqqS7akc5eSiwBLevM-ZfX00haFrdZrq2tgg@mail.gmail.com>
	<a1975489-a32d-dc2b-c117-cd36495d82fa@oss.nttdata.com>
	<CALj2ACUvkyyEP0YM5WPGfgXtTqYTMBE2Jzy8C1oX6_DcHTxf=g@mail.gmail.com>
	<2ec345ad-9a7b-a21f-8a1b-04c0537ea9b8@oss.nttdata.com>
	<CALj2ACUvuYrCi7G54Yov0oc_D9Zz6O157mtru72J-zxYYWf_3w@mail.gmail.com>
	<94c99273-4b06-1b13-98da-a716e0454cac@oss.nttdata.com>
	<CALj2ACVSCpLyzoCp10EpuvpbRwh2er56B4Dw42Gyp7EYdNxYew@mail.gmail.com>
	<45bf0b95-b8e8-b1ee-015e-0cb4cf732def@oss.nttdata.com>
	<20210422085614.GA7256@telsasoft.com>
	<CALj2ACXFkT8UEHesn3g4WdqdL1tjxukwBExbQQ3HADKTzfb_4Q@mail.gmail.com>

On Thu, Apr 22, 2021 at 05:09:02PM +0530, Bharath Rupireddy wrote:
> > should it say "specified" instead of requested ?
> > Or should it say "requested the RESTART IDENTITY behavior" ?
> >
> > Also, I think it should say "..otherwise, the CONTINUE IDENTITY behavior was
> > requested".
> 
> The original TRUNCATE document uses this - "When RESTART IDENTITY is specified"
> 
> IMO the following looks better: "If restart_seqs is true, RESTART
> IDENTITY was specified in the original TRUNCATE command, otherwise
> CONTINUE IDENTITY was specified."

This suggests that one of the two options was "specified", but the user maybe
didn't specify either, which is why we used the "behavior" language - if
neither is "specified" then the default behavior is what was "requested".

-- 
Justin





view thread (117+ messages)  latest in thread

Message-ID: <20210422140651.GC7256@telsasoft.com>
Permalink:  ../20210422140651.GC7256@telsasoft.com/
Also on:    postgresql.org/message-id/20210422140651.GC7256@telsasoft.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-hackers@postgresql.org
  Cc: pryzby@telsasoft.com, bharath.rupireddyforpostgres@gmail.com, masao.fujii@oss.nttdata.com, kaigai@heterodb.com, onishi@heterodb.com, zyu@yugabyte.com, amitlangote09@gmail.com, ibrar.ahmad@gmail.com, ashutosh.bapat.oss@gmail.com
  Subject: Re: TRUNCATE on foreign table
  In-Reply-To: <20210422140651.GC7256@telsasoft.com>
  References: <CALj2ACX7UYyg9tsqqS7akc5eSiwBLevM-ZfX00haFrdZrq2tgg@mail.gmail.com> <a1975489-a32d-dc2b-c117-cd36495d82fa@oss.nttdata.com> <CALj2ACUvkyyEP0YM5WPGfgXtTqYTMBE2Jzy8C1oX6_DcHTxf=g@mail.gmail.com> <2ec345ad-9a7b-a21f-8a1b-04c0537ea9b8@oss.nttdata.com> <CALj2ACUvuYrCi7G54Yov0oc_D9Zz6O157mtru72J-zxYYWf_3w@mail.gmail.com> <94c99273-4b06-1b13-98da-a716e0454cac@oss.nttdata.com> <CALj2ACVSCpLyzoCp10EpuvpbRwh2er56B4Dw42Gyp7EYdNxYew@mail.gmail.com> <45bf0b95-b8e8-b1ee-015e-0cb4cf732def@oss.nttdata.com> <20210422085614.GA7256@telsasoft.com> <CALj2ACXFkT8UEHesn3g4WdqdL1tjxukwBExbQQ3HADKTzfb_4Q@mail.gmail.com> <20210422140651.GC7256@telsasoft.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