| 
									
										
										
										
											2009-07-02 09:55:57 +00:00
										 |  |  | /*-------------------------------------------------------------------------
 | 
					
						
							|  |  |  |  * pgut-spi.h | 
					
						
							|  |  |  |  * | 
					
						
							| 
									
										
										
										
											2011-04-29 05:06:48 +00:00
										 |  |  |  * Portions Copyright (c) 2008-2011, NIPPON TELEGRAPH AND TELEPHONE CORPORATION | 
					
						
							|  |  |  |  * Portions Copyright (c) 2011, Itagaki Takahiro | 
					
						
							| 
									
										
										
										
											2012-11-11 03:00:00 +00:00
										 |  |  |  * Portions Copyright (c) 2012, The Reorg Development Team | 
					
						
							| 
									
										
										
										
											2009-07-02 09:55:57 +00:00
										 |  |  |  *------------------------------------------------------------------------- | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef PGUT_SPI_H
 | 
					
						
							|  |  |  | #define PGUT_SPI_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "executor/spi.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #if PG_VERSION_NUM < 80400
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | extern int SPI_execute_with_args(const char *src, int nargs, Oid *argtypes, | 
					
						
							|  |  |  | 	Datum *values, const char *nulls, bool read_only, long tcount); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-03 05:52:31 +00:00
										 |  |  | extern void execute(int expected, const char *sql); | 
					
						
							|  |  |  | extern void execute_plan(int expected, SPIPlanPtr plan, Datum *values, const char *nulls); | 
					
						
							|  |  |  | extern void execute_with_format(int expected, const char *format, ...) | 
					
						
							|  |  |  | __attribute__((format(printf, 2, 3))); | 
					
						
							|  |  |  | extern void execute_with_args(int expected, const char *src, int nargs, Oid argtypes[], Datum values[], const bool nulls[]); | 
					
						
							|  |  |  | extern void execute_with_format_args(int expected, const char *format, int nargs, Oid argtypes[], Datum values[], const bool nulls[], ...) | 
					
						
							|  |  |  | __attribute__((format(printf, 2, 7))); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-02 09:55:57 +00:00
										 |  |  | #endif   /* PGUT_SPI_H */
 |