aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-08-25 21:37:08 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-08-25 21:37:08 +0000
commitf62d1253eff4622f6ff0b76f8f0f2eca793bd608 (patch)
treee28e49785256ce9f46f924bc518b0dfeda0d80a6 /src/include
parent7414d619507ed9e2cdb5113ff77df55feef786c4 (diff)
downloadpostgresql-f62d1253eff4622f6ff0b76f8f0f2eca793bd608.tar.gz
postgresql-f62d1253eff4622f6ff0b76f8f0f2eca793bd608.zip
From: Massimo Dal Zotto <dz@cs.unitn.it>
> these patches define the UNLISTEN sql command. The code already > existed but it was unknown to the parser. Now it can be used > like the listen command. > You must make clean and delete gram.c and parser.h before make.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/commands/async.h3
-rw-r--r--src/include/nodes/nodes.h3
-rw-r--r--src/include/nodes/parsenodes.h12
3 files changed, 15 insertions, 3 deletions
diff --git a/src/include/commands/async.h b/src/include/commands/async.h
index 498cec4fbfd..bf92a27ee54 100644
--- a/src/include/commands/async.h
+++ b/src/include/commands/async.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: async.h,v 1.7 1997/09/08 02:35:37 momjian Exp $
+ * $Id: async.h,v 1.8 1998/08/25 21:37:00 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -20,6 +20,7 @@ extern void Async_Notify(char *relname);
extern void Async_NotifyAtCommit(void);
extern void Async_NotifyAtAbort(void);
extern void Async_Listen(char *relname, int pid);
+extern void Async_Unlisten(char *relname, int pid);
extern GlobalMemory notifyContext;
diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h
index 8ab0f5e3f53..9d1f12852ba 100644
--- a/src/include/nodes/nodes.h
+++ b/src/include/nodes/nodes.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodes.h,v 1.27 1998/08/18 00:49:01 scrappy Exp $
+ * $Id: nodes.h,v 1.28 1998/08/25 21:37:02 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -171,6 +171,7 @@ typedef enum NodeTag
T_RuleStmt,
T_NotifyStmt,
T_ListenStmt,
+ T_UnlistenStmt,
T_TransactionStmt,
T_ViewStmt,
T_LoadStmt,
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 2ffa6081fe7..eb7bb13d105 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parsenodes.h,v 1.56 1998/08/25 15:09:31 thomas Exp $
+ * $Id: parsenodes.h,v 1.57 1998/08/25 21:37:04 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -441,6 +441,16 @@ typedef struct ListenStmt
} ListenStmt;
/* ----------------------
+ * Unlisten Statement
+ * ----------------------
+ */
+typedef struct UnlistenStmt
+{
+ NodeTag type;
+ char *relname; /* relation to unlisten on */
+} UnlistenStmt;
+
+/* ----------------------
* {Begin|Abort|End} Transaction Statement
* ----------------------
*/