Re: Need Some Recent Information on the Differences between Postgres and MySql

Поиск
Список
Период
Сортировка
От Jim Montgomery
Тема Re: Need Some Recent Information on the Differences between Postgres and MySql
Дата
Msg-id SNT123-W820FA94A77741943FEC8BA7C70@phx.gbl
обсуждение исходный текст
Ответ на Re: Need Some Recent Information on the Differences between Postgres and MySql  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-general
Remove me from your email chain.
 
> Date: Thu, 24 Jun 2010 21:57:15 -0400
> Subject: Re: [GENERAL] Need Some Recent Information on the Differences between Postgres and MySql
> From: scott.marlowe@gmail.com
> To: wultsch@gmail.com
> CC: mary.y.wang@boeing.com; pgsql-general@postgresql.org
>
> On Thu, Jun 24, 2010 at 9:46 PM, Rob Wultsch <wultsch@gmail.com> wrote:
> > On Thu, Jun 24, 2010 at 6:13 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> >> For instant, by default, this will work in mysql:
> >>
> >> create table test (i int);
> >> insert into test (i) values ('');
> >>
> >> with a warning, but will produce an error in most modern versions of pgsql.
> >>
> >
> > However it is easy to get mostly sane behavior from MySQL:
> >
> > mysql> set sql_mode='strict_all_tables';
> > Query OK, 0 rows affected (0.00 sec)
> >
> > mysql> create table test (i int);
> > Query OK, 0 rows affected (0.05 sec)
> >
> > mysql> insert into test (i) values ('');
> > ERROR 1366 (HY000): Incorrect integer value: '' for column 'i' at row 1
>
> Now if there were just a way to turn it on and not let the user turn it off...
>
> > If it were me I would generally work with whichever system I knew
> > better unless there was a specific reason to migrate. Both systems
> > will be a bit of a pain as they are both complicated. C'est la vie.
> >
> > All else being equal I would start a new project with PG.
>
> Agreed. I find that PostgreSQL tends to teach you fewer bad habits and
> MySQL does.
>
> > Full disclosure: I am a MySQL DBA.
>
> I'm a pgsql DBA...
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general


Get a new e-mail account with Hotmail - Free. Sign-up now.

В списке pgsql-general по дате отправления:

Предыдущее
От: Rob Wultsch
Дата:
Сообщение: Re: Need Some Recent Information on the Differences between Postgres and MySql
Следующее
От: Steve Singer
Дата:
Сообщение: [ANNOUNCE] Slony-I 2.0.4 released