Skip site navigation (1) Skip section navigation (2)

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$ (view raw, whole thread or download thread mbox)
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"?


In response to

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


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

pgsql-bugs by date

Next:From: Susanne EbrechtDate: 2011-10-17 12:28:14
Subject: Re: char(0)
Previous:From: Simon RiggsDate: 2011-10-17 08:30:40
Subject: Re: char(0)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group