mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 11:51:23 +02:00
New results destination for SPI manager.
This commit is contained in:
parent
0d0254d1fb
commit
d8933d5cff
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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)
|
void (*DestToFunction(CommandDest dest))(HeapTuple, TupleDesc)
|
||||||
{
|
{
|
||||||
switch (dest) {
|
switch (dest) {
|
||||||
@ -72,6 +74,10 @@ void (*DestToFunction(CommandDest dest))(HeapTuple, TupleDesc)
|
|||||||
case Debug:
|
case Debug:
|
||||||
return debugtup;
|
return debugtup;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SPI:
|
||||||
|
return spi_printtup;
|
||||||
|
break;
|
||||||
|
|
||||||
case None:
|
case None:
|
||||||
default:
|
default:
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: dest.h,v 1.7 1997/08/27 09:05:09 vadim Exp $
|
* $Id: dest.h,v 1.8 1997/08/29 09:06:27 vadim Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -47,8 +47,9 @@ typedef enum {
|
|||||||
Remote, /* results sent to frontend process */
|
Remote, /* results sent to frontend process */
|
||||||
CopyBegin, /* results sent to frontend process but are strings */
|
CopyBegin, /* results sent to frontend process but are strings */
|
||||||
CopyEnd, /* results sent to frontend process but are strings */
|
CopyEnd, /* results sent to frontend process but are strings */
|
||||||
RemoteInternal /* results sent to frontend process in internal
|
RemoteInternal, /* results sent to frontend process in internal
|
||||||
(binary) form */
|
(binary) form */
|
||||||
|
SPI /* results sent to SPI manager */
|
||||||
} CommandDest;
|
} CommandDest;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user