Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id C6FD7B5DC1F for ; Mon, 17 Oct 2011 04:53:26 -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 32772-02 for ; Mon, 17 Oct 2011 07:53:20 +0000 (UTC) X-Greylist: delayed 00:21:30.856782 by SQLgrey-1.8.0-rc2 Received: from outmail149080.authsmtp.com (outmail149080.authsmtp.com [62.13.149.80]) by mail.postgresql.org (Postfix) with ESMTP id 5E078B5DC32 for ; Mon, 17 Oct 2011 04:53:20 -0300 (ADT) Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt10.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p9H7VmCI095238 for ; Mon, 17 Oct 2011 08:31:48 +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 p9H7VkL4068695 for ; Mon, 17 Oct 2011 08:31:47 +0100 (BST) Message-ID: <4E9BD9E2.2010305@2ndQuadrant.com> Date: Mon, 17 Oct 2011 09:31:46 +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: Pg Bugs Subject: char(0) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Server-Quench: 124c0646-f892-11e0-ab46-001185d377ca X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOUR8T DCUJJHVGRTw4LxFW CBkfawBdJUwRWh9I NgNQM1VIGEUbXk1W QTNIGghKDx8mF2Jy dHUCKRpfYktPTwVi WktISFZVWgdpAwIA Bh4AVhtsdQVEZ3x1 Z0N9Xj4bVTx9Ex0B Rk5SHWsPYCloa2lR UUJcJANSdAVXKBdM aE1+VSYNfDRVYnx9 R1dqZmBsMW4Ady9c VAoNJEhSGQdj X-Authentic-SMTP: 61633235383639.1000: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/132 X-Sequence-Number: 31402 Hello, I couldn't find that somebody already mentioned it. PostgreSQL isn't supporting CHAR(0). An empty string has a length of 0. CHAR(0) can have two values: NULL and empty string. In MySQL it is very common to simulate not null boolean by using CHAR(0). This is a little bit annoying on migration topics. Susanne -- Susanne Ebrecht - 2ndQuadrant PostgreSQL Development, 24x7 Support, Training and Services www.2ndQuadrant.com