diff options
Diffstat (limited to 'contrib/pg_upgrade/controldata.c')
-rw-r--r-- | contrib/pg_upgrade/controldata.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/contrib/pg_upgrade/controldata.c b/contrib/pg_upgrade/controldata.c index b6cc457a022..ccf7a36c9da 100644 --- a/contrib/pg_upgrade/controldata.c +++ b/contrib/pg_upgrade/controldata.c @@ -9,10 +9,6 @@ #include <ctype.h> #include <stdlib.h> -#ifdef EDB_NATIVE_LANG -#include "access/tuptoaster.h" -#endif - /* * get_control_data() @@ -88,15 +84,6 @@ get_control_data(migratorContext *ctx, ClusterInfo *cluster, bool live_check) got_float8_pass_by_value = true; } -#ifdef EDB_NATIVE_LANG - /* EDB AS 8.3 is an 8.2 code base */ - if (cluster->is_edb_as && GET_MAJOR_VERSION(cluster->major_version) <= 803) - { - cluster->controldata.toast = TOAST_MAX_CHUNK_SIZE; - got_toast = true; - } -#endif - /* we have the result of cmd in "output". so parse it line by line now */ while (fgets(bufin, sizeof(bufin), output)) { @@ -140,9 +127,7 @@ get_control_data(migratorContext *ctx, ClusterInfo *cluster, bool live_check) p++; /* removing ':' char */ cluster->controldata.cat_ver = (uint32) atol(p); } - else if ((p = strstr(bufin, "First log file ID after reset:")) != NULL || - (cluster->is_edb_as && GET_MAJOR_VERSION(cluster->major_version) <= 803 && - (p = strstr(bufin, "Current log file ID:")) != NULL)) + else if ((p = strstr(bufin, "First log file ID after reset:")) != NULL) { p = strchr(p, ':'); @@ -153,9 +138,7 @@ get_control_data(migratorContext *ctx, ClusterInfo *cluster, bool live_check) cluster->controldata.logid = (uint32) atol(p); got_log_id = true; } - else if ((p = strstr(bufin, "First log file segment after reset:")) != NULL || - (cluster->is_edb_as && GET_MAJOR_VERSION(cluster->major_version) <= 803 && - (p = strstr(bufin, "Next log file segment:")) != NULL)) + else if ((p = strstr(bufin, "First log file segment after reset:")) != NULL) { p = strchr(p, ':'); |