diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-12 02:52:06 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-12 02:52:06 +0000 |
commit | 7a3e30e608a25800a1f7fdfaaca4da3f0ac0fb07 (patch) | |
tree | 215adabe95d76123f6120fc22e4b51b5a1baf4cd /src/backend/tcop/dest.c | |
parent | 5c9e9c0c42904648af5a03fe90db8050e31d603f (diff) | |
download | postgresql-7a3e30e608a25800a1f7fdfaaca4da3f0ac0fb07.tar.gz postgresql-7a3e30e608a25800a1f7fdfaaca4da3f0ac0fb07.zip |
Add INSERT/UPDATE/DELETE RETURNING, with basic docs and regression tests.
plpgsql support to come later. Along the way, convert execMain's
SELECT INTO support into a DestReceiver, in order to eliminate some ugly
special cases.
Jonah Harris and Tom Lane
Diffstat (limited to 'src/backend/tcop/dest.c')
-rw-r--r-- | src/backend/tcop/dest.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/backend/tcop/dest.c b/src/backend/tcop/dest.c index fdfa0080700..fe7115b5f02 100644 --- a/src/backend/tcop/dest.c +++ b/src/backend/tcop/dest.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/dest.c,v 1.68 2006/03/05 15:58:40 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/dest.c,v 1.69 2006/08/12 02:52:05 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -30,6 +30,7 @@ #include "access/printtup.h" #include "access/xact.h" +#include "executor/executor.h" #include "executor/tstoreReceiver.h" #include "libpq/libpq.h" #include "libpq/pqformat.h" @@ -124,6 +125,9 @@ CreateDestReceiver(CommandDest dest, Portal portal) elog(ERROR, "portal has no holdStore"); return CreateTuplestoreDestReceiver(portal->holdStore, portal->holdContext); + + case DestIntoRel: + return CreateIntoRelDestReceiver(); } /* should never get here */ @@ -148,6 +152,7 @@ EndCommand(const char *commandTag, CommandDest dest) case DestDebug: case DestSPI: case DestTuplestore: + case DestIntoRel: break; } } @@ -186,6 +191,7 @@ NullCommand(CommandDest dest) case DestDebug: case DestSPI: case DestTuplestore: + case DestIntoRel: break; } } @@ -226,6 +232,7 @@ ReadyForQuery(CommandDest dest) case DestDebug: case DestSPI: case DestTuplestore: + case DestIntoRel: break; } } |