aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-10-14 23:49:20 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-10-14 23:49:20 +0000
commit9ff695c944e7a60792f38302076826eaf54d4031 (patch)
tree6e8cc2f7a857b9cc05e6c7101b3e4d178d8afa2b /src/backend/tcop/postgres.c
parentba0edcf451b992d064f311337bea2ddfbe7333db (diff)
downloadpostgresql-9ff695c944e7a60792f38302076826eaf54d4031.tar.gz
postgresql-9ff695c944e7a60792f38302076826eaf54d4031.zip
Make SPI's execution of querystrings follow the rules agreed to for
command status at the interactive level. SPI_processed, etc are set in the same way as the returned command status would have been set if the same querystring were issued interactively. Per gripe from Michael Paesold 25-Sep-02.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 9538b34a4e9..ea1b0cb3714 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.302 2002/10/14 22:14:35 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.303 2002/10/14 23:49:20 tgl Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -119,8 +119,6 @@ int XfuncMode = 0;
static int InteractiveBackend(StringInfo inBuf);
static int SocketBackend(StringInfo inBuf);
static int ReadCommand(StringInfo inBuf);
-static List *pg_parse_query(StringInfo query_string, Oid *typev, int nargs);
-static List *pg_analyze_and_rewrite(Node *parsetree);
static void start_xact_command(void);
static void finish_xact_command(bool forceCommit);
static void SigHupHandler(SIGNAL_ARGS);
@@ -367,7 +365,7 @@ pg_parse_and_rewrite(char *query_string, /* string to execute */
* we've seen a COMMIT or ABORT command; when we are in abort state, other
* commands are not processed any further than the raw parse stage.
*/
-static List *
+List *
pg_parse_query(StringInfo query_string, Oid *typev, int nargs)
{
List *raw_parsetree_list;
@@ -395,7 +393,7 @@ pg_parse_query(StringInfo query_string, Oid *typev, int nargs)
*
* NOTE: for reasons mentioned above, this must be separate from raw parsing.
*/
-static List *
+List *
pg_analyze_and_rewrite(Node *parsetree)
{
List *querytree_list;
@@ -1769,7 +1767,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.302 $ $Date: 2002/10/14 22:14:35 $\n");
+ puts("$Revision: 1.303 $ $Date: 2002/10/14 23:49:20 $\n");
}
/*