File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#include "postgres.h"
10
10
#include "pgut-spi.h"
11
+ #include "lib/stringinfo.h"
11
12
12
13
#define EXEC_FAILED (ret , expected ) \
13
14
(((expected) > 0 && (ret) != (expected)) || (ret) < 0)
Original file line number Diff line number Diff line change 30
30
#include "pgut/pgut-spi.h"
31
31
#include "pgut/pgut-be.h"
32
32
33
+ /* htup.h was reorganized for 9.3, so now we need this header */
34
+ #if PG_VERSION_NUM >= 90300
35
+ #include "access/htup_details.h"
36
+ #endif
37
+
33
38
PG_MODULE_MAGIC ;
34
39
35
40
extern Datum PGUT_EXPORT reorg_version (PG_FUNCTION_ARGS );
@@ -972,7 +977,11 @@ swap_heap_or_index_files(Oid r1, Oid r2)
972
977
973
978
/* swap size statistics too, since new rel has freshly-updated stats */
974
979
{
980
+ #if PG_VERSION_NUM >= 90300
981
+ int32 swap_pages ;
982
+ #else
975
983
int4 swap_pages ;
984
+ #endif
976
985
float4 swap_tuples ;
977
986
978
987
swap_pages = relform1 -> relpages ;
You can’t perform that action at this time.
0 commit comments