Unix Technical Forum

DELETE & INSERT in a function

This is a discussion on DELETE & INSERT in a function within the pgsql Novice forums, part of the PostgreSQL category; --> Hi All, If I have a DELETE operation and an INSERT operation in a function will the DELETE operation ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 08:20 PM
Keith Worthington
 
Posts: n/a
Default DELETE & INSERT in a function

Hi All,

If I have a DELETE operation and an INSERT operation in a function will the
DELETE operation be performed after the INSERT regardless of the order inside
the function? I am seeing some behavior using PostgreSQL v7.3.6 that I do not
understand.

Kind Regards,
Keith

______________________________________________
99main Internet Services http://www.99main.com


---------------------------(end of broadcast)---------------------------
TIP 7: 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-17-2008, 08:20 PM
Vishal Kashyap @ [SaiHertz]
 
Posts: n/a
Default Re: DELETE & INSERT in a function

Hi Keith ,


>
> If I have a DELETE operation and an INSERT operation in a function will the
> DELETE operation be performed after the INSERT regardless of the order inside
> the function?

They must work in the order specified.

> I am seeing some behavior using PostgreSQL v7.3.6 that I do not
> understand.


Please do let us know more.

--
With Best Regards,
Vishal Kashyap.
http://vishalkashyap.tk

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

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 11:02 AM.


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