Skip site navigation (1) Skip section navigation (2)

pgsql: SQL functions returning pass-by-reference types were copying the

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: SQL functions returning pass-by-reference types were copying the
Date: 2005-04-10 18:04:21
Message-ID: 20050410180421.25B405356C@svr1.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
SQL functions returning pass-by-reference types were copying the results
into the wrong memory context, resulting in a query-lifespan memory leak.
Bug is new in 8.0, I believe.  Per report from Rae Stiening.

Modified Files:
--------------
    pgsql/src/backend/executor:
        functions.c (r1.96 -> r1.97)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/functions.c.diff?r1=1.96&r2=1.97)

pgsql-committers by date

Next:From: Tom LaneDate: 2005-04-10 18:04:31
Subject: pgsql: SQL functions returning pass-by-reference types were copying the
Previous:From: User KimhanseDate: 2005-04-10 18:04:16
Subject: tablelog - tablelog: Accept log_schema as 3rd arg in table_log() trigger

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group