diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-01 21:57:18 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-01 21:57:18 +0000 |
commit | 573fe25203d8df257f01477bc429f0d0f311c3d6 (patch) | |
tree | f9684aa2ae9c12d5a78a3aa77569b3e5ec4379c0 /src/backend/tcop/postgres.c | |
parent | 51225120ebfbc81d7c61b4abb513e37c7f8c5a99 (diff) | |
download | postgresql-573fe25203d8df257f01477bc429f0d0f311c3d6.tar.gz postgresql-573fe25203d8df257f01477bc429f0d0f311c3d6.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.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 82eebee4fa8..d756b6f2a6c 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.307 2002/10/31 21:34:16 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.307.2.1 2003/01/01 21:57:18 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.307 $ $Date: 2002/10/31 21:34:16 $\n"); + puts("$Revision: 1.307.2.1 $ $Date: 2003/01/01 21:57:18 $\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 */ |