mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
TOAST
WARNING: This is actually broken - we have self-deadlocks due to concurrent changes in buffer management. Vadim and me are working on it. Jan
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
* workings can be found in the book "Software Solutions in C" by
|
||||
* Dale Schumacher, Academic Press, ISBN: 0-12-632360-7.
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.40 2000/06/15 03:32:28 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.41 2000/07/03 23:09:50 wieck Exp $
|
||||
*/
|
||||
|
||||
#include <limits.h>
|
||||
@ -730,7 +730,7 @@ cash_words_out(Cash *value)
|
||||
|
||||
/* make a text type for output */
|
||||
result = (text *) palloc(strlen(buf) + VARHDRSZ);
|
||||
VARSIZE(result) = strlen(buf) + VARHDRSZ;
|
||||
VARATT_SIZEP(result) = strlen(buf) + VARHDRSZ;
|
||||
memcpy(VARDATA(result), buf, strlen(buf));
|
||||
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user