Re: char(0)

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: char(0)
Date: 2011-10-17 08:53:30
Message-ID: j7gqct$vgm$1@dough.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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"?

Thomas

In response to

  • char(0) at 2011-10-17 07:31:46 from Susanne Ebrecht

Responses

  • Re: char(0) at 2011-10-17 14:41:24 from Andreas Pflug

Browse pgsql-bugs by date

  From Date Subject
Next Message Susanne Ebrecht 2011-10-17 12:28:14 Re: char(0)
Previous Message Simon Riggs 2011-10-17 08:30:40 Re: char(0)