Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wWQ54-002bKG-0i for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Jun 2026 02:51:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wWQ51-000OXt-0Q for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Jun 2026 02:51:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wWQ50-000OXl-2S for pgsql-hackers@lists.postgresql.org; Mon, 08 Jun 2026 02:51:10 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wWQ4y-00000001ccS-2E0F for pgsql-hackers@lists.postgresql.org; Mon, 08 Jun 2026 02:51:09 +0000 Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-c8629bed4e7so409694a12.2 for ; Sun, 07 Jun 2026 19:51:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780887066; x=1781491866; darn=lists.postgresql.org; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=FKm9z7Md/ZMGP6Wcp8llfjINHpptTO6+cR5Y2OzCWzU=; b=ADr8AGVAv9rt0NDIrfTF3LJ8Hx/g4dgfkqRF+dYk60ubbsmlBpdW3HNyFC7tb1a5Y5 Z6ac3ABK8H7HKYc99g00SMnnqgssgUPO4TVl6CHZK7mdq7KxRBa0P8HZTtlEpdDvZx5m dlxMfEs21sFbFQJScYivy4NdRMT9gIAJNdkvoBhldmX7J6p1KpVQ6xYZe9hLeazwdcCt PXSIvBIZMOLynHQIhIaNfu/uN+ThM1JjueQfU/UdPtYtWJwTMEo/Pe764PWT3EjCRghh 4tECfTQ0YkeWw/zy9JsjQic1EFhKEEoEpchqlH9JLdH/nsa2Ac3A4WugjD8S3sib7t8b yMyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780887066; x=1781491866; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FKm9z7Md/ZMGP6Wcp8llfjINHpptTO6+cR5Y2OzCWzU=; b=o3mafzcFkXlpIW/3GAdjz6JKCAn2JG9eoZ9CFF7+l93xzYMJThi6bUtr4po8nLXXDw T04zunrGHp3/4g6V4hiRAu4+rqFGnASu8Zjgiws9e8Axzob0mAU6Kokyfpuf1VNJ4XSd go1/Z0ylg0sxZDXDU2oMP3LqG3e7BhOWLT/eLF0T9rGppL8vuFIVwgjwPof0x1+1CXSO A5Hh06BFqDS98DzbhWbDXUH/3cvz9zFkdTDmVfcSorC+oD1OnsGf3N8JMZtgevC+XJRR v6bWVy21ZaAEbDsRhkBwIucpgAvamEtjQQ6UjeNQfyolhCmK00iqDXNpbfW+HPhHfl3B XxCw== X-Gm-Message-State: AOJu0YyMxVGJQNjMI59qxZCKnMtzS3jDD9PIcgWGexVxfv8C0KuEu8v0 fhYO94AhVgpTmP5tOt1/AEbXyt3EIjPevKo996x0TE0o2eNmpxM4sNvI X-Gm-Gg: Acq92OHvWl7M7Dk9BJGFbAzt8pEovmzj+iiPGLIp1aCXi/w38KyYt0EGAQOCLKetFgF FDGAyT2Aeq8AQU+QA27g2A3hXT5UGq54naOg0wqHQtp+D/22w989xhoLtYOomDSNZpnbxMNnNNa iXP8uqI4tCnYISN9rJ9R8vvP92eUXmJclAV8AOxqqkpsFpzJBD9huWQ5eXW0X2xZGap/UME3Xc/ oqMYdLZLTopkFJRPe0a+b2ArV+wswuk2bfXVDn6jEYcnl2+a3dbhOcdy3/k+b7apJVduNerymUk jZjYl6VFgxIyJ9QrDewKif7vVnb+uAM+WVS3BXDkoyMf1XpQDapB4R9cZblazU/zmDVMosrveuS j2JHz+a+XyGgtcPxaM6nQdlge+lScrNUe5eu1iK3xnD5nhPDj89PS2Hx2w4RadTOovrZSiX6gHh fLStEx2hYLYkpO0yk41rBgcV2OhpZKV3+alahaatH2myA5cTAYa6e5A+ZpL5D8Bcl23Fzlkq7sx uA7A81fDQ== X-Received: by 2002:a05:6a20:2cf:b0:3a0:adc5:52c1 with SMTP id adf61e73a8af0-3b4ccd45babmr15311766637.11.1780887066283; Sun, 07 Jun 2026 19:51:06 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c85df034ab9sm13359127a12.5.2026.06.07.19.51.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jun 2026 19:51:05 -0700 (PDT) Date: Mon, 08 Jun 2026 11:51:04 +0900 (JST) Message-Id: <20260608.115104.1546503424691983310.horikyota.ntt@gmail.com> To: 44973863@qq.com Cc: pgsql-hackers@lists.postgresql.org Subject: Re: [PATCH] Doc: Mention OFF as an alias for EXPLAIN SERIALIZE NONE From: Kyotaro Horiguchi In-Reply-To: References: User-Agent: Mew version 6.8 on Emacs 29.4 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk At Sun, 7 Jun 2026 11:28:51 +0800, "ZizhuanLiu X-MAN" <44973863@qq.com> wrote in > I confirmed the equivalence between OFF and NONE via the following tests: > ```sql > explain (ANALYZE true, SERIALIZE off ) select * from pg_catalog.pg_stat_lock; > explain (ANALYZE true, SERIALIZE none) select * from pg_catalog.pg_stat_lock; > ``` > Both statements execute identically with consistent runtime behavior. > > To keep this patch minimal and focused, I leave the enum, tab completion and > regression tests unchanged for now. This patch simply adds a note to the > documentation stating that OFF is a valid alias for NONE. Any remaining > inconsistencies can be addressed in separate follow-up patches later. > > > Reviews, comments and feedback are all welcome. Personally, I'm not sure this is worth documenting. Some enum-valued options accept boolean-style representations that are not mentioned in the documentation. In some cases this is simply an implementation detail, while in others it is provided as a convenience or for consistency with existing conventions. For example, the documentation for the enum-valued GUC parameter synchronous_commit describes the meaningful settings as "on", "off", "local", "remote_write", and "remote_apply". It also accepts "1" and "0", though those are not documented. The same applies to SQL-level options such as those used in CREATE SUBSCRIPTION WITH (...). However, I don't think it would be particularly helpful to add "1" and "0" to the documentation. Coming back to SERIALIZE, I see OFF in much the same way: it seems more like a convenience alias than a distinct option that users need to know about. For that reason, I don't feel there is much value in documenting it explicitly. That said, I can see a somewhat stronger case for documenting OFF here than for documenting boolean-style aliases such as 0 and 1. Since SERIALIZE otherwise takes enum-style values (NONE, TEXT, and BINARY), seeing OFF may leave readers wondering whether it has a meaning distinct from NONE. Even so, if we do decide to mention it, the proposed wording feels a bit heavy to me. Something like "SERIALIZE NONE (or OFF)" would probably be sufficient. Regards. -- Kyotaro Horiguchi NTT Open Source Software Center