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

pgsql: Use palloc in TopMemoryContext instead of malloc

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use palloc in TopMemoryContext instead of malloc
Date: 2011-01-18 22:14:29
Message-ID: E1PfJor-0003BE-6j@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Use palloc in TopMemoryContext instead of malloc

As discussed, even if the PL needs a permanent memory location, it
should use palloc, not malloc.  It also makes error handling easier.

Jan Urbański

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=59ea9ef9aa216d0bc718539cd5622628943d3f21

Modified Files
--------------
src/pl/plpython/plpython.c |   15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)

pgsql-committers by date

Next:From: User Masao_fujiiDate: 2011-01-19 07:55:23
Subject: pgbulkload - pgbulkload: Fix some typos in Japanese document.
Previous:From: Bruce MomjianDate: 2011-01-18 20:53:57
Subject: pgsql: In test_fsync,adjust test headings to match wal_sync_method val

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