pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Susanne Ebrecht <susanne@2ndQuadrant.com>
Cc: Andreas Pflug <pgadmin@pse-consulting.de>
Cc: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: char(0)
Date: Tue, 18 Oct 2011 13:17:15 -0400
Message-ID: <7412.1318958235@sss.pgh.pa.us> (raw)
In-Reply-To: <4E9D8F6D.6030300@2ndQuadrant.com>
References: <4E9BD9E2.2010305@2ndQuadrant.com>
	<j7gqct$vgm$1@dough.gmane.org>
	<4E9C3E94.3020509@pse-consulting.de>
	<4E9D8F6D.6030300@2ndQuadrant.com>

Susanne Ebrecht <susanne@2ndQuadrant.com> writes:
> On 17.10.2011 16:41, Andreas Pflug wrote:
>> 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...

> Depends if you want / are able to touch the application source code or not.

If you're expecting to move a mysql application to postgres with zero
source code changes, you're living in a fantasy world anyway ... but
this difference is hardly likely to be your worst problem.

AFAICT the SQL standard is perfectly clear on this.  *Values* of type
varchar can be of zero length, but that does not mean that you can
*declare* a column to be varchar(0), and that NOTE says specifically
that you can't.

			regards, tom lane



view thread (12+ messages)

Message-ID: <7412.1318958235@sss.pgh.pa.us>
Permalink:  ../7412.1318958235@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7412.1318958235@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, susanne@2ndQuadrant.com, pgadmin@pse-consulting.de, spam_eater@gmx.net
  Subject: Re: char(0)
  In-Reply-To: <7412.1318958235@sss.pgh.pa.us>
  References: <4E9BD9E2.2010305@2ndQuadrant.com> <j7gqct$vgm$1@dough.gmane.org> <4E9C3E94.3020509@pse-consulting.de> <4E9D8F6D.6030300@2ndQuadrant.com> <7412.1318958235@sss.pgh.pa.us>

* 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