Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2026EB5DBE0 for ; Mon, 17 Oct 2011 11:54:06 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 78091-02 for ; Mon, 17 Oct 2011 14:53:59 +0000 (UTC) X-Greylist: delayed 00:07:32.594759 by SQLgrey-1.8.0-rc2 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by mail.postgresql.org (Postfix) with ESMTP id E2388B5DBC4 for ; Mon, 17 Oct 2011 11:53:59 -0300 (ADT) Received: from pse.dyndns.org (dslb-088-071-021-166.pools.arcor-ip.net [88.71.21.166]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0LmjjU-1QZ1NB0bCW-00hUJL; Mon, 17 Oct 2011 16:41:25 +0200 Received: from [192.168.0.8] by pse.dyndns.org with esmtp (Exim 4.72) (envelope-from ) id 1RFoNY-0007By-CN; Mon, 17 Oct 2011 16:41:24 +0200 Message-ID: <4E9C3E94.3020509@pse-consulting.de> Date: Mon, 17 Oct 2011 16:41:24 +0200 From: Andreas Pflug User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Thomas Kellerer CC: pgsql-bugs@postgresql.org Subject: Re: char(0) References: <4E9BD9E2.2010305@2ndQuadrant.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:vxxxwdhOd+DQriLVPzcMrY4T54NWVaVyRI/xnbVLmJ0 c2W1pjZS+1X//hsAF1yVIaAUXnUnDdWy6FM1FpRAMyf9qwR8pl fOdRnjB81pqfWcC6oVBOho6BJdD6fRhprPk03EKpTDh+109trg eMH6uv3RKEqo0XRU9ZEHRtOqW7wDWcLH7eZxeyunbWPrU44p8n tLS0vNwgPYLjqR5NAo7eOyw8njqdpJQjKJDoE7K70rcOm3Q2G8 73HI80tMrVZRnnfZmSy0Dc8ZRBRRebI2QDWTkxgMrNRR4lgQ6G myziL1KRJ3RiqxrBW4i12YP/QYEATg5Dhppz17LGMj9GthRONU SqYAhKPjN/ljn+ffzP64= 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, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201110/139 X-Sequence-Number: 31409 Am 17.10.11 10:53, schrieb Thomas Kellerer: > Susanne Ebrecht, 17.10.2011 09:31: >> 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. > > While not move on to a cleaner approach during the migration and use a > "boolean not null"? Sounds much too straight forward, not mysql-ish artistic enough... Regards, Andreas