File tree 2 files changed +10
-2
lines changed 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
- <!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/checkpoint.sgml,v 1.2 2001/01/24 21:56:23 petere Exp $ -->
1
+ <!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/checkpoint.sgml,v 1.3 2001/01/27 10:19:52 petere Exp $ -->
2
2
3
3
<refentry id="sql-checkpoint">
4
4
<docinfo>
@@ -40,6 +40,11 @@ CHECKPOINT
40
40
<citetitle>PostgreSQL Administrator's Guide</citetitle> for more
41
41
information about the WAL system.
42
42
</para>
43
+
44
+ <para>
45
+ Only superusers may call <command>CHECKPOINT</command>. The command is
46
+ not intended for use during normal operation.
47
+ </para>
43
48
</refsect1>
44
49
45
50
<refsect1>
Original file line number Diff line number Diff line change 10
10
*
11
11
*
12
12
* IDENTIFICATION
13
- * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.106 2001/01/24 19:43:11 momjian Exp $
13
+ * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.107 2001/01/27 10: 19:52 petere Exp $
14
14
*
15
15
*-------------------------------------------------------------------------
16
16
*/
17
17
#include "postgres.h"
18
18
19
19
#include "access/heapam.h"
20
20
#include "catalog/catalog.h"
21
+ #include "catalog/pg_shadow.h"
21
22
#include "commands/async.h"
22
23
#include "commands/cluster.h"
23
24
#include "commands/command.h"
@@ -851,6 +852,8 @@ ProcessUtility(Node *parsetree,
851
852
{
852
853
set_ps_display (commandTag = "CHECKPOINT" );
853
854
855
+ if (!superuser ())
856
+ elog (ERROR , "permission denied" );
854
857
CreateCheckPoint (false);
855
858
}
856
859
break ;
You can’t perform that action at this time.
0 commit comments