mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Replace TupleTableSlot convention for whole-row variables and function
results with tuples as ordinary varlena Datums. This commit does not in itself do much for us, except eliminate the horrid memory leak associated with evaluation of whole-row variables. However, it lays the groundwork for allowing composite types as table columns, and perhaps some other useful features as well. Per my proposal of a few days ago.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.101 2004/03/23 19:35:16 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.102 2004/04/01 21:28:44 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1796,7 +1796,6 @@ AlterTableAddColumn(Oid myrelid,
|
||||
attribute->attnum = i;
|
||||
attribute->attbyval = tform->typbyval;
|
||||
attribute->attndims = attndims;
|
||||
attribute->attisset = (bool) (tform->typtype == 'c');
|
||||
attribute->attstorage = tform->typstorage;
|
||||
attribute->attalign = tform->typalign;
|
||||
attribute->attnotnull = colDef->is_not_null;
|
||||
@ -4084,15 +4083,15 @@ AlterTableCreateToastTable(Oid relOid, bool silent)
|
||||
TupleDescInitEntry(tupdesc, (AttrNumber) 1,
|
||||
"chunk_id",
|
||||
OIDOID,
|
||||
-1, 0, false);
|
||||
-1, 0);
|
||||
TupleDescInitEntry(tupdesc, (AttrNumber) 2,
|
||||
"chunk_seq",
|
||||
INT4OID,
|
||||
-1, 0, false);
|
||||
-1, 0);
|
||||
TupleDescInitEntry(tupdesc, (AttrNumber) 3,
|
||||
"chunk_data",
|
||||
BYTEAOID,
|
||||
-1, 0, false);
|
||||
-1, 0);
|
||||
|
||||
/*
|
||||
* Ensure that the toast table doesn't itself get toasted, or we'll be
|
||||
|
Reference in New Issue
Block a user