1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

New results destination for SPI manager.

This commit is contained in:
Vadim B. Mikheev
1997-08-29 09:06:27 +00:00
parent 0d0254d1fb
commit d8933d5cff
2 changed files with 10 additions and 3 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/dest.c,v 1.9 1997/08/28 05:05:43 vadim Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/dest.c,v 1.10 1997/08/29 09:04:18 vadim Exp $
*
*-------------------------------------------------------------------------
*/
@ -54,6 +54,8 @@ donothing(HeapTuple tuple, TupleDesc attrdesc)
{
}
extern void spi_printtup (HeapTuple tuple, TupleDesc tupdesc);
void (*DestToFunction(CommandDest dest))(HeapTuple, TupleDesc)
{
switch (dest) {
@ -72,6 +74,10 @@ void (*DestToFunction(CommandDest dest))(HeapTuple, TupleDesc)
case Debug:
return debugtup;
break;
case SPI:
return spi_printtup;
break;
case None:
default: