1996-08-28 03:59:28 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* pg_listener.h
|
1997-09-07 07:04:48 +02:00
|
|
|
* Asynchronous notification
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*
|
2006-03-05 16:59:11 +01:00
|
|
|
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
2006-03-05 16:59:11 +01:00
|
|
|
* $PostgreSQL: pgsql/src/include/catalog/pg_listener.h,v 1.21 2006/03/05 15:58:54 momjian Exp $
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
* NOTES
|
1997-09-07 07:04:48 +02:00
|
|
|
* the genbki.sh script reads this file and generates .bki
|
|
|
|
* information from the DATA() statements.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_LISTENER_H
|
|
|
|
#define PG_LISTENER_H
|
|
|
|
|
|
|
|
/* ----------------
|
2003-03-10 23:28:22 +01:00
|
|
|
* postgres.h contains the system type definitions and the
|
2005-04-14 03:38:22 +02:00
|
|
|
* CATALOG(), BKI_BOOTSTRAP and DATA() sugar words so this file
|
1997-09-07 07:04:48 +02:00
|
|
|
* can be read by both genbki.sh and the C compiler.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_listener definition.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
1997-09-07 07:04:48 +02:00
|
|
|
* cpp turns this into typedef struct FormData_pg_listener
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------------------------------------------------------
|
|
|
|
*/
|
2005-10-15 04:49:52 +02:00
|
|
|
#define ListenerRelationId 2614
|
1996-08-28 03:59:28 +02:00
|
|
|
|
2005-04-14 03:38:22 +02:00
|
|
|
CATALOG(pg_listener,2614) BKI_WITHOUT_OIDS
|
1997-09-07 07:04:48 +02:00
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
NameData relname;
|
|
|
|
int4 listenerpid;
|
|
|
|
int4 notification;
|
1996-08-28 03:59:28 +02:00
|
|
|
} FormData_pg_listener;
|
|
|
|
|
2001-06-12 07:55:50 +02:00
|
|
|
/* ----------------
|
|
|
|
* Form_pg_listener corresponds to a pointer to a tuple with
|
|
|
|
* the format of pg_listener relation.
|
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
typedef FormData_pg_listener *Form_pg_listener;
|
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* compiler constants for pg_listener
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#define Natts_pg_listener 3
|
|
|
|
#define Anum_pg_listener_relname 1
|
|
|
|
#define Anum_pg_listener_pid 2
|
|
|
|
#define Anum_pg_listener_notify 3
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* initial contents of pg_listener are NOTHING.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* PG_LISTENER_H */
|