Skip to content

Commit 631378d

Browse files
authored
chore: add tablesample test file in pg-regress (#4257)
1 parent 7bfca59 commit 631378d

3 files changed

Lines changed: 587 additions & 381 deletions

File tree

benchmarks/pg_regress/code.patch

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,48 @@
1+
diff --git a/src/include/c.h b/src/include/c.h
2+
index f69d739be57..3aacbbc405e 100644
3+
--- a/src/include/c.h
4+
+++ b/src/include/c.h
5+
@@ -430,26 +430,26 @@ typedef void (*pg_funcptr_t) (void);
6+
* See also the version of this code in src/interfaces/ecpg/include/ecpglib.h.
7+
*/
8+
9+
-#ifndef __cplusplus
10+
+//#ifndef __cplusplus
11+
12+
-#ifdef PG_USE_STDBOOL
13+
+//#ifdef PG_USE_STDBOOL
14+
#include <stdbool.h>
15+
-#else
16+
+//#else
17+
18+
-#ifndef bool
19+
-typedef unsigned char bool;
20+
-#endif
21+
+//#ifndef bool
22+
+//typedef unsigned char bool;
23+
+//#endif
24+
25+
-#ifndef true
26+
-#define true ((bool) 1)
27+
-#endif
28+
+//#ifndef true
29+
+//#define true ((bool) 1)
30+
+//#endif
31+
32+
-#ifndef false
33+
-#define false ((bool) 0)
34+
-#endif
35+
+//#ifndef false
36+
+//#define false ((bool) 0)
37+
+//#endif
38+
39+
-#endif /* not PG_USE_STDBOOL */
40+
-#endif /* not C++ */
41+
+//#endif /* not PG_USE_STDBOOL */
42+
+//#endif /* not C++ */
43+
44+
45+
/* ----------------------------------------------------------------
146
diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c
247
index 60d34a40b20..6a1eea9c266 100644
348
--- a/src/test/regress/pg_regress.c

0 commit comments

Comments
 (0)