Unix Technical Forum

Error in trigger example

This is a discussion on Error in trigger example within the Pgsql Patches forums, part of the PostgreSQL category; --> Folks, Please find enclosed a patch that fixes the trigger example in plpgsql (emp_stamp). Cheers, D -- David Fetter ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 01:00 AM
David Fetter
 
Posts: n/a
Default Error in trigger example

Folks,

Please find enclosed a patch that fixes the trigger example in plpgsql
(emp_stamp).

Cheers,
D
--
David Fetter david@fetter.org http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778

Remember to vote!


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 01:00 AM
Tom Lane
 
Posts: n/a
Default Re: Error in trigger example

David Fetter <david@fetter.org> writes:
> Please find enclosed a patch that fixes the trigger example in plpgsql
> (emp_stamp).


Uh ... that example is not broken.

If we were going to change it, I'd favor current_timestamp over
either Postgres-ism.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-18-2008, 01:00 AM
David Fetter
 
Posts: n/a
Default Re: Error in trigger example

On Thu, Oct 20, 2005 at 08:03:13PM -0400, Tom Lane wrote:
> David Fetter <david@fetter.org> writes:
> > Please find enclosed a patch that fixes the trigger example in plpgsql
> > (emp_stamp).

>
> Uh ... that example is not broken.
>
> If we were going to change it, I'd favor current_timestamp over
> either Postgres-ism.


CURRENT_TIMESTAMP works. Shall I resend?

Cheers,
D
--
David Fetter david@fetter.org http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778

Remember to vote!

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-18-2008, 01:00 AM
Neil Conway
 
Posts: n/a
Default Re: Error in trigger example

On Thu, 2005-20-10 at 20:03 -0400, Tom Lane wrote:
> If we were going to change it, I'd favor current_timestamp over
> either Postgres-ism.


Committed.

-Neil



---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:43 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com