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 1lZZyx-0004qk-R3 for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Apr 2021 14:07:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lZZyu-00039Y-SR for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Apr 2021 14:07:00 +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 1lZZyu-00039Q-GJ for pgsql-hackers@lists.postgresql.org; Thu, 22 Apr 2021 14:07:00 +0000 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lZZyr-00022X-CJ for pgsql-hackers@lists.postgresql.org; Thu, 22 Apr 2021 14:07:00 +0000 Received: by mail-ot1-x329.google.com with SMTP id i26-20020a9d625a0000b02902a2119f7613so5430549otk.10 for ; Thu, 22 Apr 2021 07:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=H7BJICbsv0+PbNx++Wx4vv/wKpjP938fnNqvFWJP4N4=; b=bkf7fqVu3YZe2IImBTtun+Q/v6uhcxWoLrnlKfX2jkW+/lTW/AfYNzz4DYPWt8TZ1q +Hz8KeK4/F8pqAZsOlGhHQsihnn0UHXoO47OUpEuKcScZxPbJMXbOZMdC+9zRbXVdx/h ODQWft4xem9wZRraMmgSHYNGcyTVDsEJyrFUOurSY54qyA8mLRXGFPdWCmyZ4OIbSeEk hBphHkS79P1sOAAe4w4cqJJtpMzPa+3FRXX2VDuOXdNJIBKngmjFyQ/7CXsRwwgDnoBF dJfDMcdn0dAwNI4+vl95+0LFj07UQFQZuRDGGA0ADsvgxDYbGxvyG63E4sTrobGL1Jf/ QuJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=H7BJICbsv0+PbNx++Wx4vv/wKpjP938fnNqvFWJP4N4=; b=q963nCb6Eqkrie+GqCZD0sMGzNuzREVZ1XDbf03UZm0KykH1Hju61DzmwoEOeuafmY apaSLmmnuDLmQBvuSTctTXOfAzfHvRiMzy/wqXuGcdcwgR7+rbsuUWZW9IQK8V5oD06v T1I3bcCoqx66rEZkbSq+0TnpvHFhwYd63BI19lp0aMo5ZE9WkUGiZF8oQDt4WpNFvLbW +WOXiv9a0HWwM79OM/GCKgTAWKgLJN8YeGNClEBJZMON5snSpNKnsuAyUCZUZztX++OL D1Vajgf2nhk7fBcVPg8bm2f7K0nxbnMj695aQAozAUH5rLZEzuC55aRannOYEd5RITII 7hsQ== X-Gm-Message-State: AOAM533hpgDLGDKj1SF/2rQP3v/ckoBM2StXVJS0wHQGStv7PpVo9Px5 W9IQIGZYZAbyenW76DtAW3aTNA== X-Google-Smtp-Source: ABdhPJxCY/jdGXt4nbYXuUCFnOZ7tIjZWnZ+EVOxBP7YjJUndt+WXAsPAd1cUtavzFZHOTtZkv27SA== X-Received: by 2002:a9d:1d26:: with SMTP id m35mr3035937otm.266.1619100413355; Thu, 22 Apr 2021 07:06:53 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id x24sm634791otk.16.2021.04.22.07.06.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Apr 2021 07:06:52 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 8C52C800A3C; Thu, 22 Apr 2021 09:06:51 -0500 (CDT) Date: Thu, 22 Apr 2021 09:06:51 -0500 From: Justin Pryzby To: Bharath Rupireddy Cc: Fujii Masao , Kohei KaiGai , Kazutaka Onishi , Zhihong Yu , Amit Langote , Ibrar Ahmed , pgsql-hackers@lists.postgresql.org, Ashutosh Bapat Subject: Re: TRUNCATE on foreign table Message-ID: <20210422140651.GC7256@telsasoft.com> References: <2ec345ad-9a7b-a21f-8a1b-04c0537ea9b8@oss.nttdata.com> <94c99273-4b06-1b13-98da-a716e0454cac@oss.nttdata.com> <45bf0b95-b8e8-b1ee-015e-0cb4cf732def@oss.nttdata.com> <20210422085614.GA7256@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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