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 1sPptB-006Z6t-47 for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jul 2024 20:50:41 +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 1sPpt8-00E5LH-OD for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jul 2024 20:50:39 +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 1sPpt8-00E5L9-Dg for pgsql-hackers@lists.postgresql.org; Fri, 05 Jul 2024 20:50:39 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sPpt6-000ahN-LD for pgsql-hackers@postgresql.org; Fri, 05 Jul 2024 20:50:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 465KoWLP342047; Fri, 5 Jul 2024 16:50:32 -0400 From: Tom Lane To: Bruce Momjian cc: David Rowley , "David G. Johnston" , Peter Eisentraut , James Coleman , pgsql-hackers Subject: Re: Should we document how column DEFAULT expressions work? In-reply-to: References: <1642803.1719447063@sss.pgh.pa.us> Comments: In-reply-to Bruce Momjian message dated "Fri, 05 Jul 2024 16:31:13 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <342045.1720212632.1@sss.pgh.pa.us> Date: Fri, 05 Jul 2024 16:50:32 -0400 Message-ID: <342046.1720212632@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Bruce Momjian writes: > Also interestingly, "now" without quotes requires parentheses to make it > a function call: I'm not sure why you find that surprising, or why you think that 'now()'::timestamptz is a function call. (Well, it is a call of timestamptz_in, but not of the SQL function now().) Documentation that is equally confused won't help any. regards, tom lane