aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-01-01 21:57:05 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-01-01 21:57:05 +0000
commitd6dbb6b283468a0686edb4ff3b18fe9722ab7cbd (patch)
tree3289158afdaf40fef84ba5da3cd8702fdfd69d17 /src/backend/tcop/postgres.c
parenta26ac42b7663387b69e3f53bddc7d9f8543d8317 (diff)
downloadpostgresql-d6dbb6b283468a0686edb4ff3b18fe9722ab7cbd.tar.gz
postgresql-d6dbb6b283468a0686edb4ff3b18fe9722ab7cbd.zip
fastpath code neglected to check whether user has privileges to call the
target function. Also, move SetQuerySnapshot() call to avoid assert failure when a fastpath call is attempted in an aborted transaction.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 9ac2a052d67..44f163215bc 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.313 2002/12/06 05:00:26 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.314 2003/01/01 21:57:05 tgl Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -1781,7 +1781,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.313 $ $Date: 2002/12/06 05:00:26 $\n");
+ puts("$Revision: 1.314 $ $Date: 2003/01/01 21:57:05 $\n");
}
/*
@@ -1965,9 +1965,6 @@ PostgresMain(int argc, char *argv[], const char *username)
/* start an xact for this function invocation */
start_xact_command();
- /* assume it may need a snapshot */
- SetQuerySnapshot();
-
if (HandleFunctionRequest() == EOF)
{
/* lost frontend connection during F message input */