File tree Expand file tree Collapse file tree 5 files changed +36
-2
lines changed Expand file tree Collapse file tree 5 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,34 @@ void_out(PG_FUNCTION_ARGS)
212
212
PG_RETURN_CSTRING (pstrdup ("" ));
213
213
}
214
214
215
+ /*
216
+ * void_recv - binary input routine for pseudo-type VOID.
217
+ *
218
+ * Note that since we consume no bytes, an attempt to send anything but
219
+ * an empty string will result in an "invalid message format" error.
220
+ */
221
+ Datum
222
+ void_recv (PG_FUNCTION_ARGS )
223
+ {
224
+ PG_RETURN_VOID ();
225
+ }
226
+
227
+ /*
228
+ * void_send - binary output routine for pseudo-type VOID.
229
+ *
230
+ * We allow this so that "SELECT function_returning_void(...)" works
231
+ * even when binary output is requested.
232
+ */
233
+ Datum
234
+ void_send (PG_FUNCTION_ARGS )
235
+ {
236
+ StringInfoData buf ;
237
+
238
+ /* send an empty string */
239
+ pq_begintypsend (& buf );
240
+ PG_RETURN_BYTEA_P (pq_endtypsend (& buf ));
241
+ }
242
+
215
243
216
244
/*
217
245
* trigger_in - input routine for pseudo-type TRIGGER.
Original file line number Diff line number Diff line change 53
53
*/
54
54
55
55
/* yyyymmddN */
56
- #define CATALOG_VERSION_NO 201102191
56
+ #define CATALOG_VERSION_NO 201102221
57
57
58
58
#endif
Original file line number Diff line number Diff line change @@ -4226,6 +4226,10 @@ DATA(insert OID = 2502 ( anyarray_recv PGNSP PGUID 12 1 0 0 f f f t f s 1 0
4226
4226
DESCR ("I/O" );
4227
4227
DATA (insert OID = 2503 ( anyarray_send PGNSP PGUID 12 1 0 0 f f f t f s 1 0 17 "2277" _null_ _null_ _null_ _null_ anyarray_send _null_ _null_ _null_ ));
4228
4228
DESCR ("I/O" );
4229
+ DATA (insert OID = 3120 ( void_recv PGNSP PGUID 12 1 0 0 f f f t f i 1 0 2278 "2281" _null_ _null_ _null_ _null_ void_recv _null_ _null_ _null_ ));
4230
+ DESCR ("I/O" );
4231
+ DATA (insert OID = 3121 ( void_send PGNSP PGUID 12 1 0 0 f f f t f i 1 0 17 "2278" _null_ _null_ _null_ _null_ void_send _null_ _null_ _null_ ));
4232
+ DESCR ("I/O" );
4229
4233
4230
4234
/* System-view support functions with pretty-print option */
4231
4235
DATA (insert OID = 2504 ( pg_get_ruledef PGNSP PGUID 12 1 0 0 f f f t f s 2 0 25 "26 16" _null_ _null_ _null_ _null_ pg_get_ruledef_ext _null_ _null_ _null_ ));
Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ DATA(insert OID = 2276 ( any PGNSP PGUID 4 t p P f t \054 0 0 0 any_in any_ou
615
615
#define ANYOID 2276
616
616
DATA (insert OID = 2277 ( anyarray PGNSP PGUID - 1 f p P f t \054 0 0 0 anyarray_in anyarray_out anyarray_recv anyarray_send - - - d x f 0 - 1 0 0 _null_ _null_ ));
617
617
#define ANYARRAYOID 2277
618
- DATA (insert OID = 2278 ( void PGNSP PGUID 4 t p P f t \054 0 0 0 void_in void_out - - - - - i p f 0 - 1 0 0 _null_ _null_ ));
618
+ DATA (insert OID = 2278 ( void PGNSP PGUID 4 t p P f t \054 0 0 0 void_in void_out void_recv void_send - - - i p f 0 - 1 0 0 _null_ _null_ ));
619
619
#define VOIDOID 2278
620
620
DATA (insert OID = 2279 ( trigger PGNSP PGUID 4 t p P f t \054 0 0 0 trigger_in trigger_out - - - - - i p f 0 - 1 0 0 _null_ _null_ ));
621
621
#define TRIGGEROID 2279
Original file line number Diff line number Diff line change @@ -504,6 +504,8 @@ extern Datum anyenum_in(PG_FUNCTION_ARGS);
504
504
extern Datum anyenum_out (PG_FUNCTION_ARGS );
505
505
extern Datum void_in (PG_FUNCTION_ARGS );
506
506
extern Datum void_out (PG_FUNCTION_ARGS );
507
+ extern Datum void_recv (PG_FUNCTION_ARGS );
508
+ extern Datum void_send (PG_FUNCTION_ARGS );
507
509
extern Datum trigger_in (PG_FUNCTION_ARGS );
508
510
extern Datum trigger_out (PG_FUNCTION_ARGS );
509
511
extern Datum language_handler_in (PG_FUNCTION_ARGS );
You can’t perform that action at this time.
0 commit comments