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.94.2) (envelope-from ) id 1sO7A6-00CQOZ-8n for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jul 2024 02:53:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sO7A4-00EZUe-My for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jul 2024 02:53:01 +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.94.2) (envelope-from ) id 1sO7A4-00EZUV-DQ for pgsql-hackers@lists.postgresql.org; Mon, 01 Jul 2024 02:53:00 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sO7A2-003xQa-At for pgsql-hackers@postgresql.org; Mon, 01 Jul 2024 02:52:59 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-52ce6c8db7bso3652686e87.1 for ; Sun, 30 Jun 2024 19:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719802377; x=1720407177; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7IRToxAjj6s7FDqpNzwomfKsjw7NIlGaPCZaTc7CSrw=; b=HnmpZWbNUHIWYpvsAKuF1GjJzX4iDQRySIsITmIRjWEiuhtHwHEX1ic6tJzpUBcvYD EbyNRYQ7DhU812MbpijI+YJV4iozZBaOKqbxjzmFclfpCcPzTu7b8UefvJ4GKLvmeWVv uEjRPf2NIXDPXCabSsC/nGpyGBPKyv+1QbSB8JDM6uC5NKSJXQnj0H9eRjQkS6p+FtIY qs5/6Ci9ncxkMH+lKA1BZ1N0X5/qhQvxW25I+0Duk4aXZJOpHbSGujr57bC9qbk2XFny XxZYsx7AANyveU/UPkbLb6IQdZrTBR8SVnqM6gWcifEH1fQNCAXFsvLnVVnk0EuBsnTb dtvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719802377; x=1720407177; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7IRToxAjj6s7FDqpNzwomfKsjw7NIlGaPCZaTc7CSrw=; b=MKXoiDwldtZnvDQj5dJ+E8473Qso2I7KXsnKm8ErCUJxQj1X9FfQlDz/qng75NZ9/0 YVK55qvW1Vw/S0kdM/jg5C7Wj69xIK+HbogKPLtVIQ1bHyF8q00hievp9HkQWCkxmyjN 943vvazixxK4HLnQ+I+u8mkTAM8wvyNjqaPg1RhcAwAVkIvDaPKr5zCtdPxWIBp7NC9G RFEk8ro4fD15HEAtd8VkmOiFTYGSSho16zdJy9f5vfnxxYDG6fVNi0DNfRC7hI0En1PC meC/Y/BQNifjsvStdhkvCl5bMQ3xJJw79txeGYAODYYamc9h7Q9wIqEWOIgyUV4NYbhT AX7w== X-Forwarded-Encrypted: i=1; AJvYcCX1OqavE5dcxI7FYzNXmVfK154nQ7MYQ/ewuB34cUcem5H69szssdLREK/WgsJYDfmuBJilYbPKBAZhJqE6SOSC/+EqPngMQoL9t7Sq X-Gm-Message-State: AOJu0YxrG6nd3xT3W3W2CWJ1ktEvNRiMMCfrwNosh8rk6e8bdWlLZugG SbXMr1mcF/N4quEkPIwjaqe5VHZXP5E5zNetg7tva+U1LjtmGB1XXf/RZcPsM3l/XrzATVeiPSZ RW+wONBI7C+qEZDsauJCvZaxDT2A= X-Google-Smtp-Source: AGHT+IFflYz/hsRLOlE2hZ+xe31JwB7J/Vzcdt23KB0nsQZ1qcaUOELMI/KeI1WX+MVCFMMpeU0lY5jC91z+0LCk4JY= X-Received: by 2002:a05:6512:1251:b0:52c:deba:7e6e with SMTP id 2adb3069b0e04-52e82691371mr3574671e87.29.1719802376370; Sun, 30 Jun 2024 19:52:56 -0700 (PDT) MIME-Version: 1.0 References: <1362410.1719349169@sss.pgh.pa.us> <1390099.1719357084@sss.pgh.pa.us> <1642803.1719447063@sss.pgh.pa.us> In-Reply-To: From: David Rowley Date: Mon, 1 Jul 2024 14:52:42 +1200 Message-ID: Subject: Re: Should we document how column DEFAULT expressions work? To: "David G. Johnston" Cc: Peter Eisentraut , Tom Lane , James Coleman , pgsql-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 1 Jul 2024 at 13:41, David G. Johnston wrote: > I presume the relatively new atomic SQL functions pose a similar hazard. Do you have an example of this? > The fact that 'now()'::timestamp fails to fail doesn't help... If that's the case, maybe a tiny step towards what Peter proposed is just to make trailing punctuation fail for timestamp special values in v18. David