Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1emOZN-00072n-80 for pgsql-docs@arkaria.postgresql.org; Thu, 15 Feb 2018 18:47:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emOZL-0002Tl-RK for pgsql-docs@arkaria.postgresql.org; Thu, 15 Feb 2018 18:47:43 +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.84_2) (envelope-from ) id 1emOZL-0002Tc-Ii for pgsql-docs@lists.postgresql.org; Thu, 15 Feb 2018 18:47:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1emOZI-0002zK-Jn for pgsql-docs@lists.postgresql.org; Thu, 15 Feb 2018 18:47:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w1FIldtn027718; Thu, 15 Feb 2018 13:47:39 -0500 From: Tom Lane To: neil@postgrescompare.com cc: pgsql-docs@lists.postgresql.org Subject: Re: The example for creating a check constraint is missing a comma In-reply-to: <151871659877.1393.2431103178451978795@wrigleys.postgresql.org> References: <151871659877.1393.2431103178451978795@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Doc_comments_form?= message dated "Thu, 15 Feb 2018 17:43:18 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27716.1518720459.1@sss.pgh.pa.us> Date: Thu, 15 Feb 2018 13:47:39 -0500 Message-ID: <27717.1518720459@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Doc_comments_form?= writes: > See the example from the documentation for CREATE TABLE below. There should > be a comma before the CONSTRAINT keyword. > CREATE TABLE distributors ( > did integer, > name varchar(40) > CONSTRAINT con1 CHECK (did > 100 AND name <> '') > ); Hmm ... that example is legal syntax as-is, but considering that the explanation for it says specifically that it's table-constraint syntax not column-constraint syntax, I think you're right. regards, tom lane