Re: Migrating from mysql. - Mailing list pgsql-general

From Ron Peterson
Subject Re: Migrating from mysql.
Date
Msg-id 392E7A41.1A533EC9@yellowbank.com
Whole thread Raw
In response to Re: Migrating from mysql.  (JanWieck@t-online.de (Jan Wieck))
List pgsql-general
Jan Wieck wrote:
>
> Ron Peterson wrote:
>
>     As long as there's someone watching you ;-)

:-)

> > No.  Try a combination of default value and an update rule.  I've
> > included an example below.  There was a discussion on this list recently
> > about when to use rules vs. triggers.  You might want to read the
> > archives about that.  Something I need to review more myself.
>
>     Exactly that. Rules are good for redirecting an entire  query
>     to  another operation (INSERT->UPDATE for example) or to fire
>     additional "global" queries on other tables.

I'm trying to learn more about triggers.  In doing so, I found some
example Server Programming Interface (SPI) functions in /contrib.  Most
germane to this discussion is the 'moddatetime' example, which was
provided by Terry Mackintosh, with help from PostgreSQL's very own Jan
Wieck...

Must be like deja vu all over again.

-Ron-

pgsql-general by date:

Previous
From: "planx plnetx"
Date:
Subject: about error : FATAL 1: cannot create init file ....../template1/pg_internal.init
Next
From: Jeff Hoffmann
Date:
Subject: Re: createdb -- alternate locations