| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Rich Shepard <rshepard(at)appl-ecosys(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Upgrading 6 versions between 2 systems |
| Date: | 2026-09-14 20:43:20 |
| Message-ID: | 201090.1789418600@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Rich Shepard <rshepard(at)appl-ecosys(dot)com> writes:
> I know that data formats can change with postgres version increases so my
> question is: can I use dumpall in the 12.7 version and move that to the host
> running 18.6 since the output is a text .sql file?
You could, but better practice is to use pg_dump[all] from the newer
version to take a dump from the old server. The idea behind that
recommendation is that the newer pg_dump may contain bug fixes that
aren't in the 12.7 version (especially noting that 12.7 is many
minor releases short of v12's EOL).
Keep in mind also that 6 years is a lot of time for things to change.
I expect your dump will probably load okay, but test your application
for compatibility.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Adrian Klaver | 2026-09-14 20:58:33 | Re: Upgrading 6 versions between 2 systems |
| Previous Message | Ron Johnson | 2026-09-14 20:43:03 | Re: Upgrading 6 versions between 2 systems |