Thanks to visit codestin.com Credit goes to github.com
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 0ffe9f7 commit ad538d8Copy full SHA for ad538d8
src/backend/tcop/utility.c
@@ -10,7 +10,7 @@
10
*
11
12
* IDENTIFICATION
13
- * $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.231 2004/12/31 22:01:16 pgsql Exp $
+ * $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.232 2005/01/24 17:46:16 tgl Exp $
14
15
*-------------------------------------------------------------------------
16
*/
@@ -803,6 +803,10 @@ ProcessUtility(Node *parsetree,
803
{
804
LoadStmt *stmt = (LoadStmt *) parsetree;
805
806
+ if (!superuser())
807
+ ereport(ERROR,
808
+ (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
809
+ errmsg("must be superuser to do LOAD")));
810
closeAllVfds(); /* probably not necessary... */
811
load_file(stmt->filename);
812
}
0 commit comments