30
30
* CreateDestReceiver returns a receiver object appropriate to the specified
31
31
* destination. The executor, as well as utility statements that can return
32
32
* tuples, are passed the resulting DestReceiver* pointer. Each executor run
33
- * or utility execution calls the receiver's startup method, then the
34
- * receiveTuple method (zero or more times), then the shutdown method.
33
+ * or utility execution calls the receiver's rStartup method, then the
34
+ * receiveTuple method (zero or more times), then the rShutdown method.
35
35
* The same receiver object may be re-used multiple times; eventually it is
36
- * destroyed by calling its destroy method.
36
+ * destroyed by calling its rDestroy method.
37
37
*
38
38
* The DestReceiver object returned by CreateDestReceiver may be a statically
39
39
* allocated object (for destination types that require no local state),
40
- * in which case destroy is a no-op. Alternatively it can be a palloc'd
40
+ * in which case rDestroy is a no-op. Alternatively it can be a palloc'd
41
41
* object that has DestReceiver as its first field and contains additional
42
42
* fields (see printtup.c for an example). These additional fields are then
43
43
* accessible to the DestReceiver functions by casting the DestReceiver*
44
- * pointer passed to them. The palloc'd object is pfree'd by the destroy
44
+ * pointer passed to them. The palloc'd object is pfree'd by the rDestroy
45
45
* method. Note that the caller of CreateDestReceiver should take care to
46
46
* do so in a memory context that is long-lived enough for the receiver
47
47
* object not to disappear while still needed.
54
54
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
55
55
* Portions Copyright (c) 1994, Regents of the University of California
56
56
*
57
- * $Id: dest.h,v 1.40 2003/08/04 02:40:15 momjian Exp $
57
+ * $Id: dest.h,v 1.41 2003/08/06 17:46:46 tgl Exp $
58
58
*
59
59
*-------------------------------------------------------------------------
60
60
*/
@@ -93,7 +93,7 @@ typedef enum
93
93
* pointers that the executor must call.
94
94
*
95
95
* Note: the receiveTuple routine must be passed a TupleDesc identical to the
96
- * one given to the startup routine. The reason for passing it again is just
96
+ * one given to the rStartup routine. The reason for passing it again is just
97
97
* that some destinations would otherwise need dynamic state merely to
98
98
* remember the tupledesc pointer.
99
99
* ----------------
@@ -107,12 +107,12 @@ struct _DestReceiver
107
107
TupleDesc typeinfo ,
108
108
DestReceiver * self );
109
109
/* Per-executor-run initialization and shutdown: */
110
- void (* startup ) (DestReceiver * self ,
110
+ void (* rStartup ) (DestReceiver * self ,
111
111
int operation ,
112
112
TupleDesc typeinfo );
113
- void (* shutdown ) (DestReceiver * self );
113
+ void (* rShutdown ) (DestReceiver * self );
114
114
/* Destroy the receiver object itself (if dynamically allocated) */
115
- void (* destroy ) (DestReceiver * self );
115
+ void (* rDestroy ) (DestReceiver * self );
116
116
/* CommandDest code for this receiver */
117
117
CommandDest mydest ;
118
118
/* Private fields might appear beyond this point... */
0 commit comments