Re: [HACKERS] What can we learn from MySQL?

From: Jeff Davis <jdavis-pgsql(at)empires(dot)org>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: PostgreSQL advocacy <pgsql-advocacy(at)postgresql(dot)org>
Subject: Re: [HACKERS] What can we learn from MySQL?
Date: 2004-04-23 08:16:38
Message-ID: 1082708197.32307.1136.camel@jeff
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-hackers pgsql-www

> I have already told Bruce at length about the single most common
> complaint in the phpPgAdmin lists and in the IRC channel: the inability
> to change column types. I think we should listen to the punters on that
> one.
>

Maybe a simple and less dangerous option would be to add a column of the
new type, rename the old column and hide it, and select from the old
column and cast it to the new column? Is that a feasible implementation?
If I really need to change a column, that's what I'd do.

It's certainly less dangerous than MySQL. I remember a horror story
watching my column silently cast itself to a bunch of blank values in
MySQL. In postgres you'd just be able to undo it or fix the problem
since the data is still there. I also understand that MySQL has to copy
the entire table or something insane like that, so we could use the
opportunity to brag about how much more efficient we are for large
tables.

Regards,
Jeff Davis

In response to

Browse pgsql-advocacy by date

  From Date Subject
Next Message Fabien COELHO 2004-04-23 08:25:58 Re: [HACKERS] What can we learn from MySQL?
Previous Message Jeff Davis 2004-04-23 08:08:30 Re: What can we learn from MySQL?

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2004-04-23 08:25:58 Re: [HACKERS] What can we learn from MySQL?
Previous Message Jeff Davis 2004-04-23 08:08:30 Re: What can we learn from MySQL?

Browse pgsql-www by date

  From Date Subject
Next Message Fabien COELHO 2004-04-23 08:25:58 Re: [HACKERS] What can we learn from MySQL?
Previous Message Jeff Davis 2004-04-23 08:08:30 Re: What can we learn from MySQL?