We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66bb44c commit ae5b7a0Copy full SHA for ae5b7a0
src/backend/tcop/utility.c
@@ -10,7 +10,7 @@
10
*
11
12
* IDENTIFICATION
13
- * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.125.2.2 2002/09/30 19:55:08 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.125.2.3 2005/01/24 17:46:58 tgl Exp $
14
15
*-------------------------------------------------------------------------
16
*/
@@ -640,6 +640,8 @@ ProcessUtility(Node *parsetree,
640
{
641
LoadStmt *stmt = (LoadStmt *) parsetree;
642
643
+ if (!superuser())
644
+ elog(ERROR, "permission denied");
645
closeAllVfds(); /* probably not necessary... */
646
load_file(stmt->filename);
647
}
0 commit comments