--- Tom Lane <[EMAIL PROTECTED]> wrote: > m w <[EMAIL PROTECTED]> writes: > > If I write a function that does a 'tolower()' on > each > > character of a parameter passed into my function, > do I > > have to allocate a new text object and initialize > it > > and copy the data, or can I modify that object in > > place and return it? > > You must NEVER alter a pass-by-reference parameter, > of text or > any other data type. If you do, you are probably > altering data > in a disk buffer, thus changing the content of a > tuple. Thanks, I was concerned that may be the case, but I could never find a definitive answer on this. __________________________________________________ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/