Commit 98e4cf2
committed
Bump required PostgreSQL version to 10.0
Rails main currently claims support for PostgreSQL 9.3+.
However, to ensure forward compatibility with PostgreSQL 18 and future releases, we need to establish a more sustainable baseline.
* Changes in this commit:
- Bump minimum required PostgreSQL version from 9.3 to 10.0
- Deprecate `supports_pgcrypto_uuid?` (no longer needed since PostgreSQL 10+ includes pgcrypto by default)
* Reasons for choosing PostgreSQL 10.0 baseline:
- The pg gem v1.6 raises its minimum required PostgreSQL version to 10 via ged/ruby-pg#606
- PostgreSQL 9.3 reached end-of-life in November 2018, and PostgreSQL 9.6 reached end-of-life in November 2021
- While Ruby on Rails has not historically dropped database support solely based on EOL status,
PostgreSQL 9.3 (released in 2013) is now over a decade old and maintaining compatibility becomes increasingly challenging
Discussed at https://discuss.rubyonrails.org/t/proposal-bump-the-minimum-supported-postgresql-version-from-9-3-to-10/894221 parent 2b4feed commit 98e4cf2
File tree
10 files changed
+43
-56
lines changed- activerecord
- lib/active_record/connection_adapters
- postgresql
- test
- cases/adapters/postgresql
- schema
- guides/source
- railties/lib/rails/generators/rails/app/templates/config/databases
10 files changed
+43
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
| 506 | + | |
511 | 507 | | |
512 | 508 | | |
513 | 509 | | |
| |||
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
475 | 475 | | |
| 476 | + | |
476 | 477 | | |
477 | 478 | | |
478 | 479 | | |
| |||
706 | 707 | | |
707 | 708 | | |
708 | 709 | | |
709 | | - | |
710 | | - | |
| 710 | + | |
| 711 | + | |
711 | 712 | | |
712 | 713 | | |
713 | 714 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
235 | 241 | | |
236 | 242 | | |
237 | 243 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | 257 | | |
261 | 258 | | |
262 | 259 | | |
| |||
Lines changed: 14 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 14 | | |
23 | 15 | | |
24 | 16 | | |
| |||
31 | 23 | | |
32 | 24 | | |
33 | 25 | | |
34 | | - | |
| 26 | + | |
35 | 27 | | |
36 | 28 | | |
37 | 29 | | |
| |||
43 | 35 | | |
44 | 36 | | |
45 | 37 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
54 | 43 | | |
55 | 44 | | |
56 | 45 | | |
| |||
228 | 217 | | |
229 | 218 | | |
230 | 219 | | |
231 | | - | |
| 220 | + | |
232 | 221 | | |
233 | 222 | | |
234 | 223 | | |
| |||
238 | 227 | | |
239 | 228 | | |
240 | 229 | | |
241 | | - | |
| 230 | + | |
242 | 231 | | |
243 | 232 | | |
244 | 233 | | |
| |||
286 | 275 | | |
287 | 276 | | |
288 | 277 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
| 278 | + | |
294 | 279 | | |
295 | 280 | | |
296 | 281 | | |
| |||
384 | 369 | | |
385 | 370 | | |
386 | 371 | | |
387 | | - | |
| 372 | + | |
388 | 373 | | |
389 | 374 | | |
390 | | - | |
| 375 | + | |
391 | 376 | | |
392 | 377 | | |
393 | 378 | | |
| |||
443 | 428 | | |
444 | 429 | | |
445 | 430 | | |
446 | | - | |
| 431 | + | |
447 | 432 | | |
448 | 433 | | |
449 | | - | |
| 434 | + | |
450 | 435 | | |
451 | 436 | | |
452 | 437 | | |
453 | | - | |
| 438 | + | |
454 | 439 | | |
455 | 440 | | |
456 | 441 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | | - | |
| 16 | + | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | | - | |
| 20 | + | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
139 | 137 | | |
140 | 138 | | |
141 | 139 | | |
142 | | - | |
| 140 | + | |
143 | 141 | | |
144 | 142 | | |
145 | 143 | | |
146 | 144 | | |
147 | | - | |
| 145 | + | |
148 | 146 | | |
149 | 147 | | |
150 | 148 | | |
151 | 149 | | |
152 | 150 | | |
153 | | - | |
| 151 | + | |
154 | 152 | | |
155 | 153 | | |
156 | 154 | | |
157 | 155 | | |
158 | | - | |
| 156 | + | |
159 | 157 | | |
160 | 158 | | |
161 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments