Ron St-Pierre <[EMAIL PROTECTED]> writes: > On a daily basis I place a lot of data into the empty table dailyList, > and from that data update certain fields in currentList. I thought that > using a function would be a good way to do this(?). However I get the > following error when I run updateCurrentData(): > ERROR: set-valued function called in context that cannot accept a set
You're probably doing SELECT updateCurrentData(); where you should be doing SELECT * FROM updateCurrentData(); There are some cases where you can invoke set-valued functions in the target list rather than in the FROM list, but this isn't one of 'em. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html