From: | Dmitriy Igrishin <dmitigr(at)gmail(dot)com> |
---|---|
To: | David Fetter <david(at)fetter(dot)org> |
Cc: | Richard Broersma <richard(dot)broersma(at)gmail(dot)com>, "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: regexp on null |
Date: | 2010-09-10 20:29:46 |
Message-ID: | AANLkTi=Mb6qut4pd3xrj7Hyy-6nRJqMkjsTU8C9dgzcX@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Agree with David.
Regards,
Dmitriy
2010/9/10 David Fetter <david(at)fetter(dot)org>
> On Fri, Sep 10, 2010 at 10:25:55AM -0700, Richard Broersma wrote:
> > On Fri, Sep 10, 2010 at 9:56 AM, Gauthier, Dave <dave(dot)gauthier(at)intel(dot)com>
> wrote:
> > > Ya, I kinda knew about these approaches. The problem ahs to do
> > > with novice users who don't know about coalesce or or;ing a check
> > > ofr nulls. I was hoping there was some special regexp expression
> > > that would match to a null.
> >
> > Perhaps the easiest was to help such users is to make the column(s)
> > in question NOT NULL DEFAULT ''.
>
> I think it's a very, very bad idea to make a default like that. I'm
> aware that it's common in one of those Oracle properties, but it needs
> to stay confined there.
>
> Cheers,
> David.
> --
> David Fetter <david(at)fetter(dot)org> http://fetter.org/
> Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
> Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
> iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics
>
> Remember to vote!
> Consider donating to Postgres: http://www.postgresql.org/about/donate
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
From | Date | Subject | |
---|---|---|---|
Next Message | Nick | 2010-09-10 22:43:20 | Regular expression that splits CSV string into table |
Previous Message | Thomas Kellerer | 2010-09-10 20:29:23 | Re: Post Install / Secure PostgreSQL |