pgq/triggers/common.h: reorder fields, comment them
authorMarko Kreen <markokr@gmail.com>
Mon, 3 Mar 2008 16:03:08 +0000 (16:03 +0000)
committerMarko Kreen <markokr@gmail.com>
Mon, 3 Mar 2008 16:03:08 +0000 (16:03 +0000)
sql/pgq/triggers/common.h

index 6afe6e3f7ddb728abaf6476c00fe53b3d6396372..3cbbdc06ae3ff0bf42733b9f037820d10e5901dd 100644 (file)
@@ -30,11 +30,11 @@ typedef struct PgqTriggerEvent PgqTriggerEvent;
  * so nothing trigger-specific should be stored.
  */
 struct PgqTableInfo {
-       Oid oid;
-       char *table_name;
-       const char *pkey_list;
-       int n_pkeys;
-       int *pkey_attno;
+       Oid oid;                /* must be first, used by htab */
+       int n_pkeys;            /* number of pkeys */
+       const char *pkey_list;  /* pk column name list */
+       int *pkey_attno;        /* pk column positions */
+       char *table_name;       /* schema-quelified table name */
 };
 
 /* common.c */