[GENERAL] The result of the last function call overwrites the result of previous function calls

2014-03-28 Thread Michael Ainsworth
Hello PostgreSQL community! I'm a big fan of PostgreSQL, but am new to the development side of things, so I apologise in advance if this email is not directed to the correct location. I have been working on an extension to PostgreSQL server to provide JSON support. This JSON support is

Re: [GENERAL] The result of the last function call overwrites the result of previous function calls

2014-03-28 Thread Tom Lane
Michael Ainsworth michael.ainswo...@abri.une.edu.au writes: My question is: Can someone please enlighten me as to why the result of the last function call overwrites the results to the previous function calls? Sounds to me like your function is using a static area for its result, or something