]> granicus.if.org Git - postgresql/blob - src/include/catalog/pg_listener.h
9547beb10db722f9073e9d073edf256567ccfc1e
[postgresql] / src / include / catalog / pg_listener.h
1 /*-------------------------------------------------------------------------
2  *
3  * pg_listener.h
4  *        Asynchronous notification
5  *
6  *
7  * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: pg_listener.h,v 1.7 2000/01/26 05:57:57 momjian Exp $
11  *
12  * NOTES
13  *        the genbki.sh script reads this file and generates .bki
14  *        information from the DATA() statements.
15  *
16  *-------------------------------------------------------------------------
17  */
18 #ifndef PG_LISTENER_H
19 #define PG_LISTENER_H
20
21 /* ----------------
22  *              postgres.h contains the system type definintions and the
23  *              CATALOG(), BOOTSTRAP and DATA() sugar words so this file
24  *              can be read by both genbki.sh and the C compiler.
25  * ----------------
26  */
27
28 /* ----------------------------------------------------------------
29  *              pg_listener definition.
30  *
31  *              cpp turns this into typedef struct FormData_pg_listener
32  * ----------------------------------------------------------------
33  */
34
35 CATALOG(pg_listener)
36 {
37         NameData        relname;
38         int4            listenerpid;
39         int4            notification;
40 } FormData_pg_listener;
41
42 /* ----------------
43  *              compiler constants for pg_listener
44  * ----------------
45  */
46 #define Natts_pg_listener                                               3
47 #define Anum_pg_listener_relname                                1
48 #define Anum_pg_listener_pid                                    2
49 #define Anum_pg_listener_notify                                 3
50
51 /* ----------------
52  *              initial contents of pg_listener are NOTHING.
53  * ----------------
54  */
55
56
57 #endif   /* PG_LISTENER_H */