diff --git a/pgaudit.c b/pgaudit.c
index a1b01d4..1cab0fa 100644
--- a/pgaudit.c
+++ b/pgaudit.c
@@ -1645,7 +1645,7 @@ pgaudit_ProcessUtility_hook(PlannedStmt *pstmt,
         {
             /*
              * If the stack is not empty then the only allowed entries are call
-             * statements or open, select, show, and explain cursors
+             * statements or open, select, show, explain, and fetch cursors
              */
             if (auditEventStack != NULL)
             {
@@ -1656,7 +1656,8 @@ pgaudit_ProcessUtility_hook(PlannedStmt *pstmt,
                     if (nextItem->auditEvent.commandTag != T_SelectStmt &&
                         nextItem->auditEvent.commandTag != T_VariableShowStmt &&
                         nextItem->auditEvent.commandTag != T_ExplainStmt &&
-                        nextItem->auditEvent.commandTag != T_CallStmt)
+                        nextItem->auditEvent.commandTag != T_CallStmt &&
+                        nextItem->auditEvent.commandTag != T_FetchStmt)
                     {
                         elog(ERROR, "pgaudit stack is not empty");
                     }
diff --git a/t/010_check_stack.pl b/t/010_check_stack.pl
index 8e07121..5563671 100644
--- a/t/010_check_stack.pl
+++ b/t/010_check_stack.pl
@@ -200,6 +200,12 @@ sub pg_connect
         stmt => q{CALL pcursor('cc')},
         log  => qr/AUDIT:.*,CALL,/,
     },
+    {
+        name  => 'FETCH',
+        setup => ['DECLARE c CURSOR FOR SELECT generate_series(1, 5)'],
+        stmt  => 'FETCH ALL FROM c',
+        log   => qr/AUDIT:.*,FETCH,/,
+    },
 );
 
 # Run each scenario on its own connection: optionally set up state, run the
