@@ -73,7 +73,7 @@ output_check_banner(bool live_check)
73
73
74
74
75
75
void
76
- check_and_dump_old_cluster (bool live_check , char * * sequence_script_file_name )
76
+ check_and_dump_old_cluster (bool live_check )
77
77
{
78
78
/* -- OLD -- */
79
79
@@ -100,29 +100,6 @@ check_and_dump_old_cluster(bool live_check, char **sequence_script_file_name)
100
100
check_for_reg_data_type_usage (& old_cluster );
101
101
check_for_isn_and_int8_passing_mismatch (& old_cluster );
102
102
103
- /* old = PG 8.3 checks? */
104
- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
105
- {
106
- old_8_3_check_for_name_data_type_usage (& old_cluster );
107
- old_8_3_check_for_tsquery_usage (& old_cluster );
108
- old_8_3_check_ltree_usage (& old_cluster );
109
- if (user_opts .check )
110
- {
111
- old_8_3_rebuild_tsvector_tables (& old_cluster , true);
112
- old_8_3_invalidate_hash_gin_indexes (& old_cluster , true);
113
- old_8_3_invalidate_bpchar_pattern_ops_indexes (& old_cluster , true);
114
- }
115
- else
116
-
117
- /*
118
- * While we have the old server running, create the script to
119
- * properly restore its sequence values but we report this at the
120
- * end.
121
- */
122
- * sequence_script_file_name =
123
- old_8_3_create_sequence_script (& old_cluster );
124
- }
125
-
126
103
/* Pre-PG 9.4 had a different 'line' data type internal format */
127
104
if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 903 )
128
105
old_9_3_check_for_line_data_type_usage (& old_cluster );
@@ -183,31 +160,8 @@ report_clusters_compatible(void)
183
160
184
161
185
162
void
186
- issue_warnings (char * sequence_script_file_name )
163
+ issue_warnings (void )
187
164
{
188
- /* old = PG 8.3 warnings? */
189
- if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 803 )
190
- {
191
- start_postmaster (& new_cluster , true);
192
-
193
- /* restore proper sequence values using file created from old server */
194
- if (sequence_script_file_name )
195
- {
196
- prep_status ("Adjusting sequences" );
197
- exec_prog (UTILITY_LOG_FILE , NULL , true,
198
- "\"%s/psql\" " EXEC_PSQL_ARGS " %s -f \"%s\"" ,
199
- new_cluster .bindir , cluster_conn_opts (& new_cluster ),
200
- sequence_script_file_name );
201
- unlink (sequence_script_file_name );
202
- check_ok ();
203
- }
204
-
205
- old_8_3_rebuild_tsvector_tables (& new_cluster , false);
206
- old_8_3_invalidate_hash_gin_indexes (& new_cluster , false);
207
- old_8_3_invalidate_bpchar_pattern_ops_indexes (& new_cluster , false);
208
- stop_postmaster (false);
209
- }
210
-
211
165
/* Create dummy large object permissions for old < PG 9.0? */
212
166
if (GET_MAJOR_VERSION (old_cluster .major_version ) <= 804 )
213
167
{
@@ -262,8 +216,8 @@ check_cluster_versions(void)
262
216
* upgrades
263
217
*/
264
218
265
- if (GET_MAJOR_VERSION (old_cluster .major_version ) < 803 )
266
- pg_fatal ("This utility can only upgrade from PostgreSQL version 8.3 and later.\n" );
219
+ if (GET_MAJOR_VERSION (old_cluster .major_version ) < 804 )
220
+ pg_fatal ("This utility can only upgrade from PostgreSQL version 8.4 and later.\n" );
267
221
268
222
/* Only current PG version is supported as a target */
269
223
if (GET_MAJOR_VERSION (new_cluster .major_version ) != GET_MAJOR_VERSION (PG_VERSION_NUM ))
0 commit comments