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

pgsql-server/src/backend/commands copy.c

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src/backend/commands copy.c
Date: 2002-12-01 18:14:22
Message-ID: 20021201181422.8986E475ADE@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
CVSROOT:	/cvsroot
Module name:	pgsql-server
Changes by:	tgl(at)postgresql(dot)org	02/12/01 13:14:22

Modified files:
	src/backend/commands: copy.c 

Log message:
	Run COPY OUT in a temporary memory context that's reset once per row,
	and eliminate its manual pfree() calls.  This solves the encoding-conversion
	bug recently reported, and should be faster and more robust than the
	original coding anyway.  For example, we are no longer at risk if
	datatype output routines leak memory or choose to return a constant string.


pgsql-committers by date

Next:From: Tom LaneDate: 2002-12-01 18:44:00
Subject: pgsql-server/src/bin/pg_dump pg_dump.c
Previous:From: Tom LaneDate: 2002-12-01 17:33:33
Subject: pgsql-server/src/backend/commands Tag: REL7_3_ ...

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