From: Susanne Ebrecht <susanne@2ndQuadrant.com>
To: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: char(0)
Date: Mon, 17 Oct 2011 09:31:46 +0200
Message-ID: <4E9BD9E2.2010305@2ndQuadrant.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: susanne@2ndQuadrant.com
Subject: Re: char(0)
In-Reply-To: <4E9BD9E2.2010305@2ndQuadrant.com>
References: <4E9BD9E2.2010305@2ndQuadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox