Re: [HACKERS] Solving the OID-collision problem

2005-08-04 Thread Ian Burrell
Tom Lane sss.pgh.pa.us> writes: > > I was reminded again today of the problem that once a database has been > in existence long enough for the OID counter to wrap around, people will > get occasional errors due to OID collisions, eg > > http://archives.postgresql.org/pgsql-general/2005-08/msg001

Re: [HACKERS] ffunc called multiple for same value

2004-07-23 Thread Ian Burrell
Tom Lane wrote: So I'm rather inclined to define this behavior as "not a bug". The fact that you're complaining seems to indicate that your ffunc scribbles on its input, which is bad programming practice in any case. Ordinarily I would not think that an ffunc should have any problem with being ex

[HACKERS] ffunc called multiple for same value

2004-07-22 Thread Ian Burrell
I posted a message a couple weeks ago abou having a problem with a user-defined C language aggregate and the ffunc being called multiple times with the same state. I came up with a test case which shows the problem with plpgsql functions. It occurs with an aggregate in an inner query, when a

Re: [HACKERS] Memory management with C aggregate

2004-07-16 Thread Ian Burrell
Tom Lane wrote: Ian Burrell <[EMAIL PROTECTED]> writes: We have user-defined aggregates written in C running inside the server. We are running into some memory management issues and wondering what is the best way to solve the problem. The state of the aggregates is a structure with a p

[HACKERS] Memory management with C aggregate

2004-07-09 Thread Ian Burrell
We have user-defined aggregates written in C running inside the server. We are running into some memory management issues and wondering what is the best way to solve the problem. The state of the aggregates is a structure with a pointer to allocated memory. The structure and memory are alloca