Re: char(0)

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: char(0)
Date: 2011-10-17 14:41:24
Message-ID: 4E9C3E94.3020509@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

  • Re: char(0) at 2011-10-17 08:53:30 from Thomas Kellerer

Responses

  • Re: char(0) at 2011-10-17 15:04:37 from John R Pierce
  • Re: char(0) at 2011-10-17 15:11:47 from PostgreSQL - Hans-Jürgen Schönig
  • Re: char(0) at 2011-10-18 14:38:37 from Susanne Ebrecht

Browse pgsql-bugs by date

  From Date Subject
Next Message John R Pierce 2011-10-17 15:04:37 Re: char(0)
Previous Message Susanne Ebrecht 2011-10-17 13:57:20 Re: char(0)