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 1fAId5-0005tN-Ai for pgsql-docs@arkaria.postgresql.org; Sun, 22 Apr 2018 17:18:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fAId4-0000w7-5F for pgsql-docs@arkaria.postgresql.org; Sun, 22 Apr 2018 17:18:22 +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 1fAId3-0000vy-SB for pgsql-docs@lists.postgresql.org; Sun, 22 Apr 2018 17:18:22 +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 1fAIcw-0005v4-7g for pgsql-docs@lists.postgresql.org; Sun, 22 Apr 2018 17:18:20 +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 w3MHICX1026419; Sun, 22 Apr 2018 13:18:12 -0400 From: Tom Lane To: pauleg.carter@gmail.com cc: pgsql-docs@lists.postgresql.org Subject: Re: bit-strings with white space In-reply-to: <152404531940.19373.17868808849072401262@wrigleys.postgresql.org> References: <152404531940.19373.17868808849072401262@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Doc_comments_form?= message dated "Wed, 18 Apr 2018 09:55:19 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26417.1524417492.1@sss.pgh.pa.us> Date: Sun, 22 Apr 2018 13:18:12 -0400 Message-ID: <26418.1524417492@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: > Postgresql 9.6, section 4.1.2.5 says that bit-strings can spill over > multiple lines, same as regular string constants. I tried SELECTing such and > found that they may only contain characters '0' and '1'. As indeed the text says. What the continuation mention is talking about is this syntax: regression=# select b'10001' '00100'; ?column? ------------ 1000100100 (1 row) which works like regression=# select 'foo' 'bar'; ?column? ---------- foobar (1 row) Perhaps there's something we could change to make this clearer, but I'm not sure what. regards, tom lane