diff options
author | Neil Conway | 2008-03-25 19:26:54 +0000 |
---|---|---|
committer | Neil Conway | 2008-03-25 19:26:54 +0000 |
commit | 1d812a98b47da94ad274dcac682c5d2c014aae16 (patch) | |
tree | 6d4b51db76796e3dd7a59e7b18432bf179fe89ad /src/include/utils/tuplestore.h | |
parent | 76cf067ae40d5f8c4bf95954726e0067131da84b (diff) |
Add a new tuplestore API function, tuplestore_putvalues(). This is
identical to tuplestore_puttuple(), except it operates on arrays of
Datums + nulls rather than a fully-formed HeapTuple. In several places
that use the tuplestore API, this means we can avoid creating a
HeapTuple altogether, saving a copy.
Diffstat (limited to 'src/include/utils/tuplestore.h')
-rw-r--r-- | src/include/utils/tuplestore.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/tuplestore.h b/src/include/utils/tuplestore.h index ee7d22b6114..37f99fea3bd 100644 --- a/src/include/utils/tuplestore.h +++ b/src/include/utils/tuplestore.h @@ -22,7 +22,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/tuplestore.h,v 1.22 2008/01/01 19:45:59 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/tuplestore.h,v 1.23 2008/03/25 19:26:53 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -51,6 +51,8 @@ extern void tuplestore_set_eflags(Tuplestorestate *state, int eflags); extern void tuplestore_puttupleslot(Tuplestorestate *state, TupleTableSlot *slot); extern void tuplestore_puttuple(Tuplestorestate *state, HeapTuple tuple); +extern void tuplestore_putvalues(Tuplestorestate *state, TupleDesc tdesc, + Datum *values, bool *isnull); /* tuplestore_donestoring() used to be required, but is no longer used */ #define tuplestore_donestoring(state) ((void) 0) |