[HACKERS] Use of global and static variables in shared libraries

2007-09-14 Thread Don Walker
I'm in the process of converting some C functions written for another system into C functions in a shared library that will be used by PostgreSQL, The key function will be the state transition function for a user-defined aggregate. From what I've read in the documentation: 1. the state value

Re: [HACKERS] Use of global and static variables in shared libraries

2007-09-14 Thread Don Walker
variables. If 200 users want to evaluate my aggregate at the same time how does the backend service them? I'm only asking this out of curiosity so I won't be too disappointed if you don't reply (because the answer is too long and complicated, etc.). Thanks for your reply, Don Walker -Original