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 1f31kR-0008L1-Fw for pgsql-docs@arkaria.postgresql.org; Mon, 02 Apr 2018 15:51:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f31kQ-0008Og-Jp for pgsql-docs@arkaria.postgresql.org; Mon, 02 Apr 2018 15:51:54 +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 1f31kQ-0008OX-AO for pgsql-docs@lists.postgresql.org; Mon, 02 Apr 2018 15:51:54 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f31kN-0004Ji-LM for pgsql-docs@lists.postgresql.org; Mon, 02 Apr 2018 15:51:53 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id E872321144; Mon, 2 Apr 2018 11:51:50 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Mon, 02 Apr 2018 11:51:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=WUU0OC afyKCtTyPrk6l7ZPAGVMorLTzEE1P7KWC9pWQ=; b=nu/CeNTlSDeN0zUw6TUR1h WaLIbjm0hxiS9OESSaX0DwV3vz+9za6Saoc2LfoqnwUgrfNuq03vkukp7+Q5x4dn gPyxCymtvWHnfi/5cgkeT1GpVCGiGJRFHMvlksnp1ddqAgvIk+m4Fgz3sVFdCorN seMs+BlBgSyKbsvFHCtOB9ME4J1XK/tHZ8X/784l+kH2MxBM3ZPynB5TCkjhrX6z 0TUx5C1AI5ADzGBVEnUb9ICC6pQMISw7DY3BMBqCHzXkRhg1VMAlY3eMmJa+4Vu9 RiBvaq0RZAzuT2ZXtuyCMGvij0GRE0R4O3zjr31gdH63XEs07dIdSKQ/38C7s68w == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 8B2A210266; Mon, 2 Apr 2018 11:51:50 -0400 (EDT) Subject: Re: "IS NOT DOCUMENT" is missing To: Bruce Momjian , Euler Taveira References: <152056505045.4963.16783351661813640274@wrigleys.postgresql.org> <20180330144007.GH8476@momjian.us> Cc: scott.ure@caseware.com, pgsql-docs@lists.postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Mon, 2 Apr 2018 11:51:50 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180330144007.GH8476@momjian.us> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/30/18 10:40, Bruce Momjian wrote: > On Fri, Mar 16, 2018 at 01:56:32AM -0300, Euler Taveira wrote: >> 2018-03-09 0:10 GMT-03:00 PG Doc comments form : >>> From testing, it seems like PostgreSQL supports the syntax "IS NOT DOCUMENT" >>> in addition to "IS DOCUMENT", similar to "IS NOT NULL", "IS NOT FALSE", etc, >>> however this does not appear to be documented, only "IS DOCUMENT" is. >>> >> It has been like that since day 1. I'm not sure why it was not >> documented. It already has some tests. I'll bet that was an oversight. >> Should we repeat the statement in another item (like the attached >> patch)? Another option is to add a statement in the "IS DOCUMENT" >> item. I'm afraid that NULL return wouldn't be clear. >> > > Patch applied and backpatched to Postgres 10. Thank.s Per the nearby discussion, this should probably also be backpatched further. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services