26
26
*
27
27
*
28
28
* IDENTIFICATION
29
- * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.56 1998/09/25 13:38:30 thomas Exp $
29
+ * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.57 1998/10/01 02:03:58 tgl Exp $
30
30
*
31
31
*-------------------------------------------------------------------------
32
32
*/
@@ -337,8 +337,6 @@ ExecCheckPerms(CmdType operation,
337
337
((aclcheck_result = CHECK (ACL_WR )) == ACLCHECK_OK );
338
338
opstr = "append" ;
339
339
break ;
340
- case CMD_NOTIFY : /* what does this mean?? -- jw,
341
- * 1/6/94 */
342
340
case CMD_DELETE :
343
341
case CMD_UPDATE :
344
342
ok = ((aclcheck_result = CHECK (ACL_WR )) == ACLCHECK_OK );
@@ -351,7 +349,6 @@ ExecCheckPerms(CmdType operation,
351
349
}
352
350
else
353
351
{
354
- /* XXX NOTIFY?? */
355
352
ok = ((aclcheck_result = CHECK (ACL_RD )) == ACLCHECK_OK );
356
353
opstr = "read" ;
357
354
}
@@ -724,26 +721,23 @@ ExecutePlan(EState *estate,
724
721
725
722
for (;;)
726
723
{
727
- if (operation != CMD_NOTIFY )
728
- {
729
- /******************
730
- * Execute the plan and obtain a tuple
731
- ******************
732
- */
733
- /* at the top level, the parent of a plan (2nd arg) is itself */
734
- slot = ExecProcNode (plan , plan );
724
+ /******************
725
+ * Execute the plan and obtain a tuple
726
+ ******************
727
+ */
728
+ /* at the top level, the parent of a plan (2nd arg) is itself */
729
+ slot = ExecProcNode (plan , plan );
735
730
736
- /******************
737
- * if the tuple is null, then we assume
738
- * there is nothing more to process so
739
- * we just return null...
740
- ******************
741
- */
742
- if (TupIsNull (slot ))
743
- {
744
- result = NULL ;
745
- break ;
746
- }
731
+ /******************
732
+ * if the tuple is null, then we assume
733
+ * there is nothing more to process so
734
+ * we just return null...
735
+ ******************
736
+ */
737
+ if (TupIsNull (slot ))
738
+ {
739
+ result = NULL ;
740
+ break ;
747
741
}
748
742
749
743
/******************
@@ -832,24 +826,6 @@ ExecutePlan(EState *estate,
832
826
result = NULL ;
833
827
break ;
834
828
835
- /*
836
- * Total hack. I'm ignoring any accessor functions for
837
- * Relation, RelationForm, NameData. Assuming that
838
- * NameData.data has offset 0.
839
- */
840
- case CMD_NOTIFY :
841
- {
842
- RelationInfo * rInfo = estate -> es_result_relation_info ;
843
- Relation rDesc = rInfo -> ri_RelationDesc ;
844
-
845
- Async_Notify (rDesc -> rd_rel -> relname .data );
846
- result = NULL ;
847
- current_tuple_count = 0 ;
848
- numberTuples = 1 ;
849
- elog (DEBUG , "ExecNotify %s" , & rDesc -> rd_rel -> relname );
850
- }
851
- break ;
852
-
853
829
default :
854
830
elog (DEBUG , "ExecutePlan: unknown operation in queryDesc" );
855
831
result = NULL ;
0 commit comments