Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTyTz-0006VC-21 for pgsql-general@arkaria.postgresql.org; Fri, 15 Jun 2018 23:50:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fTyTx-0000zG-Q6 for pgsql-general@arkaria.postgresql.org; Fri, 15 Jun 2018 23:50:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTyTx-0000yx-BG for pgsql-general@lists.postgresql.org; Fri, 15 Jun 2018 23:50:17 +0000 Received: from mail-it0-x243.google.com ([2607:f8b0:4001:c0b::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fTyTu-000739-7o for pgsql-general@postgresql.org; Fri, 15 Jun 2018 23:50:16 +0000 Received: by mail-it0-x243.google.com with SMTP id y127-v6so6433283itd.1 for ; Fri, 15 Jun 2018 16:50:13 -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=4g2X3s7S2KamMdZA6TzQg+6om9Q5qiUYSkOA5svoGJE=; b=HN6zr1vwl8/LU9Ko+0/5d7YLGH8dcqXlOXG12mScyeJbc7lufyYSe5SyiJbWC5mQIM I1yKGrxN5bjqelTm0AB2bxrx2bR/l/hJVjG15pLclB/cAcB17mhnThAfc48FDAtrimD3 HenaGBtwDy3maglbYjl4aVEcHkw7kvNckE5GldQoLAfGgqURxqtz0zST2227er06RXjD aiFtEMfP3QY7Ve3TWNWKK6T9hPJCZR91FXiac0sJOYRcVh9THMk6dTHcHg/5coGNDfua ctnErA8kfffsycWt0cTBOmOslKLRJQWZh4NS3P3LxdYn5AIWo8ZrScFJa5Jzn2zf2wbc s4vg== 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=4g2X3s7S2KamMdZA6TzQg+6om9Q5qiUYSkOA5svoGJE=; b=hi2Ua3Rf+jyCv5iG0cWh478E3RKNYSy7/82pwVSBoa8+/tmDpd2Iqs+ri7ALXZBrgd PjzqK/pXIZtsr/FBlu38C/iFQGn9hFTT18ryKTnCcGvrRXOFR5DeI0RXzlL3L6vaWJrN mgbXEZyiqWKo0cMZizHm/rMmQhIRJH48i8uA/8x+4Agic5YQD02P4+MrxbgjT9AnbCRg hssqVM0wY3qj97gttG04uHyFNpBk3zzZbhB9FbgqoIX77BhMSxHCXgiMcxDBGwAIhYed eOjhW/qPt0nMYemm5ayx4TK8sDV56+WTOItMy7eOURabQfeqCTv0I1GECnmGgPgenY3z BBfA== X-Gm-Message-State: APt69E0+Krenz7MhOb5dZY3hvrtd8eJhB+2i9io44pTOgwVbkcvz7MRW asx3jQI/ibvpJoOjLV7s0JyKuw== X-Google-Smtp-Source: ADUXVKLnqEy4qUoXiPpRQKtLlv2vRVbMnRL0jDYt21CBKkSMZQLfTA7t9rrQKV+RDdly7Eo1OJlMcA== X-Received: by 2002:a24:ad22:: with SMTP id c34-v6mr3168263itf.75.1529106613354; Fri, 15 Jun 2018 16:50:13 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id k19-v6sm1651703itb.35.2018.06.15.16.50.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jun 2018 16:50:12 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 0746D804E38; Fri, 15 Jun 2018 18:50:11 -0500 (CDT) Date: Fri, 15 Jun 2018 18:50:11 -0500 From: Justin Pryzby To: Alvaro Herrera Cc: PostgreSQL Hackers Subject: Re: ALTER TABLE SET (toast.asdf) is not rejected ... if a table has no toast Message-ID: <20180615235011.GA2327@telsasoft.com> References: <20180611133318.GY10885@telsasoft.com> <20180611154759.rk4df3wuaovq3b4u@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180611154759.rk4df3wuaovq3b4u@alvherre.pgsql> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Jun 11, 2018 at 11:47:59AM -0400, Alvaro Herrera wrote: > On 2018-Jun-11, Justin Pryzby wrote: > > > I noticed that this is accepted: > > > > postgres=# ALTER TABLE t SET (toast.asdf=128); > > ALTER TABLE > > > > I thought since "toast" was a core namespace, it would've been rejected? > > > > I recall having read a discussion about verifying these ... I wasn't able > > to find what I was thinking of, but found this one. > > https://www.postgresql.org/message-id/flat/20090114144332.GF24156%40alvh.no-ip.org > > Uh. ISTM that this was lost during the 9.4 cycle, because that command *is* > rejected in 9.3. > alvherre=# ALTER TABLE t SET (toast.asdf=128); > ERROR: unrecognized parameter "asdf" I'm assuming your "t" has a toast table. I think this is properly rejected when toast exists. It looks like we were maybe both (partially?) fooled by behavior that's been discussed multiple times over the years: SET (toast.*) is ignored for tables which don't currently have any TOAST. https://www.postgresql.org/message-id/flat/20090211194311.GP8924%40alvh.no-ip.org Maybe all's well, but I suggest there's maybe an question which hasn't been previously been disambiguated and raised: if a table has no toast, should SET (toast.JUNK) be ignored, or rejected ? BTW maybe I was originally thinking of this: https://www.postgresql.org/message-id/flat/c4d71df2-9e0e-3912-dc81-9a72e080c238%40lab.ntt.co.jp#c4d71df2-9e0e-3912-dc81-9a72e080c238@lab.ntt.co.jp Justin