16 |
PG_FUNCTION_INFO_V1(_rserv_log_); |
PG_FUNCTION_INFO_V1(_rserv_log_); |
17 |
PG_FUNCTION_INFO_V1(_rserv_sync_); |
PG_FUNCTION_INFO_V1(_rserv_sync_); |
18 |
PG_FUNCTION_INFO_V1(_rserv_debug_); |
PG_FUNCTION_INFO_V1(_rserv_debug_); |
19 |
|
PG_FUNCTION_INFO_V1(_rserv_xid_); |
20 |
Datum _rserv_log_(PG_FUNCTION_ARGS); |
Datum _rserv_log_(PG_FUNCTION_ARGS); |
21 |
Datum _rserv_sync_(PG_FUNCTION_ARGS); |
Datum _rserv_sync_(PG_FUNCTION_ARGS); |
22 |
Datum _rserv_debug_(PG_FUNCTION_ARGS); |
Datum _rserv_debug_(PG_FUNCTION_ARGS); |
23 |
|
Datum _rserv_xid_(PG_FUNCTION_ARGS); |
24 |
|
|
25 |
#else |
#else |
26 |
HeapTuple _rserv_log_(void); |
HeapTuple _rserv_log_(void); |
27 |
int32 _rserv_sync_(int32); |
int32 _rserv_sync_(int32); |
28 |
int32 _rserv_debug_(int32); |
int32 _rserv_debug_(int32); |
29 |
|
int32 _rserv_xid_(void); |
30 |
#endif |
#endif |
31 |
|
|
32 |
static int debug = 0; |
static int debug = 0; |
338 |
return (out); |
return (out); |
339 |
|
|
340 |
} |
} |
341 |
|
|
342 |
|
#ifdef PG_FUNCTION_INFO_V1 |
343 |
|
Datum |
344 |
|
_rserv_xid_(PG_FUNCTION_ARGS) |
345 |
|
#else |
346 |
|
int32 |
347 |
|
_rserv_xid_(void) |
348 |
|
#endif |
349 |
|
{ |
350 |
|
int32 curr_xid = GetCurrentTransactionId(); |
351 |
|
|
352 |
|
return (curr_xid); |
353 |
|
} |
354 |
|
|