Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 9A86CB5DBC7 for ; Mon, 17 Oct 2011 09:28:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 92317-06 for ; Mon, 17 Oct 2011 12:28:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from outmail149043.authsmtp.co.uk (outmail149043.authsmtp.co.uk [62.13.149.43]) by mail.postgresql.org (Postfix) with ESMTP id 47BA9B5DBC2 for ; Mon, 17 Oct 2011 09:28:27 -0300 (ADT) Received: from mail-c193.authsmtp.com (mail-c193.authsmtp.com [62.13.128.118]) by punt9.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p9HCSOJf047744; Mon, 17 Oct 2011 13:28:24 +0100 (BST) Received: from [192.168.23.4] (212.100.42.202.fixip.bitel.net [212.100.42.202]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p9HCSFPH069837; Mon, 17 Oct 2011 13:28:15 +0100 (BST) Message-ID: <4E9C1F5E.7000303@2ndQuadrant.com> Date: Mon, 17 Oct 2011 14:28:14 +0200 From: Susanne Ebrecht User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 MIME-Version: 1.0 To: Simon Riggs CC: Pg Bugs Subject: Re: char(0) References: <4E9BD9E2.2010305@2ndQuadrant.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Server-Quench: 7cc6bb43-f8bb-11e0-97bb-002264978518 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOUR8T DCUJJHVGRTw4LxFW CBkfawBdJUwMSABN M15eIxoJcUtFGhZ+ UCIUWVRVUU1wWml3 YwBQaEtfY0hQXgVq TkxLXFBSFhpqBB4E GR5QEhAKBGYwGAZw Y09qXXcVXkJ8cQh6 ER1SRz8CZno2YDJN TUFZIgNJeQQYLAJF alJ9UncEZm0CZ3Iu JQJhdwMbABpkHWxe QggXbQpTKQD/ X-Authentic-SMTP: 61633235383639.1014:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201110/136 X-Sequence-Number: 31406 On 17.10.2011 10:30, Simon Riggs wrote: > On Mon, Oct 17, 2011 at 8:31 AM, Susanne Ebrecht > wrote: > >> PostgreSQL isn't supporting CHAR(0). > What does the SQL Standard say? > Document: 02-Foundation Section: 4.2.1 Introduction to character strings Begin quoting A character string is a sequence of characters. All the characters in a character string are taken from a single character set. A character string has a length, which is the number of characters in the sequence. The length is 0 (zero) or a positive integer. End quoting -- Susanne Ebrecht - 2ndQuadrant PostgreSQL Development, 24x7 Support, Training and Services www.2ndQuadrant.com