pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
reviving "custom" dump
5+ messages / 3 participants
[nested] [flat]

* reviving "custom" dump
@ 2022-11-11 06:13 Rob Sargent <robjsargent@gmail.com>
  2022-11-11 06:29 ` Re: reviving "custom" dump David G. Johnston <david.g.johnston@gmail.com>
  2022-11-11 06:29 ` Re: reviving "custom" dump Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 5+ messages in thread

From: Rob Sargent @ 2022-11-11 06:13 UTC (permalink / raw)
  To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>

Short version: Does a current version of postgres tolerate ascii dumps 
from older versions?

I've been charged with reviving an old project.  I have a dump dated 
July of 2021 which file tells me is a "PostgreSQL custom database dump 
V1.13-0".  If our compute centre won't roll me a V12(?) postgres server, 
I'll need to use an "office" machine to bring this dataset back to 
life.  If I pull that off can I make an ascii dump and import that into 
our main db server (V14) or will I have to also install V14 in the 
office and dump/restore with that?

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: reviving "custom" dump
  2022-11-11 06:13 reviving "custom" dump Rob Sargent <robjsargent@gmail.com>
@ 2022-11-11 06:29 ` David G. Johnston <david.g.johnston@gmail.com>
  2022-11-11 06:47   ` Re: reviving "custom" dump Rob Sargent <robjsargent@gmail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: David G. Johnston @ 2022-11-11 06:29 UTC (permalink / raw)
  To: Rob Sargent <robjsargent@gmail.com>; +Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>

On Thu, Nov 10, 2022 at 11:13 PM Rob Sargent <robjsargent@gmail.com> wrote:

> Short version: Does a current version of postgres tolerate ascii dumps
> from older versions?
>
> I've been charged with reviving an old project.  I have a dump dated July
> of 2021 which file tells me is a "PostgreSQL custom database dump
> V1.13-0".  If our compute centre won't roll me a V12(?) postgres server,
> I'll need to use an "office" machine to bring this dataset back to life.
> If I pull that off can I make an ascii dump and import that into our main
> db server (V14) or will I have to also install V14 in the office and
> dump/restore with that?
>
>

 https://www.postgresql.org/docs/current/app-pgdump.html

You should read the description and notes sections for how this command
works and its capabilities and potential limitations.

David J.

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: reviving "custom" dump
  2022-11-11 06:13 reviving "custom" dump Rob Sargent <robjsargent@gmail.com>
  2022-11-11 06:29 ` Re: reviving "custom" dump David G. Johnston <david.g.johnston@gmail.com>
@ 2022-11-11 06:47   ` Rob Sargent <robjsargent@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Rob Sargent @ 2022-11-11 06:47 UTC (permalink / raw)
  To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>

On 11/10/22 23:29, David G. Johnston wrote:
> On Thu, Nov 10, 2022 at 11:13 PM Rob Sargent <robjsargent@gmail.com> 
> wrote:
>
>     Short version: Does a current version of postgres tolerate ascii
>     dumps from older versions?
>
>     I've been charged with reviving an old project.  I have a dump
>     dated July of 2021 which file tells me is a "PostgreSQL custom
>     database dump V1.13-0".  If our compute centre won't roll me a
>     V12(?) postgres server, I'll need to use an "office" machine to
>     bring this dataset back to life.  If I pull that off can I make an
>     ascii dump and import that into our main db server (V14) or will I
>     have to also install V14 in the office and dump/restore with that?
>
>
>
> https://www.postgresql.org/docs/current/app-pgdump.html
>
> You should read the description and notes sections for how this 
> command works and its capabilities and potential limitations.
>
> David J.
>
Off by one error here perhaps:  I have a custom dump in hand, it's 
restoring that is the problem.  But pretty sure the take home from 
pg_restore is "Use the newer version both ways".  Though mildly amused 
at the

    ;     Dumped from database version: 8.3.5
    ;     Dumped by pg_dump version: 8.3.8


in the re-ordering example!

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: reviving "custom" dump
  2022-11-11 06:13 reviving "custom" dump Rob Sargent <robjsargent@gmail.com>
@ 2022-11-11 06:29 ` Tom Lane <tgl@sss.pgh.pa.us>
  2022-11-11 06:35   ` Re: reviving "custom" dump Rob Sargent <robjsargent@gmail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Tom Lane @ 2022-11-11 06:29 UTC (permalink / raw)
  To: Rob Sargent <robjsargent@gmail.com>; +Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>

Rob Sargent <robjsargent@gmail.com> writes:
> Short version: Does a current version of postgres tolerate ascii dumps 
> from older versions?

We intend it to.  Have you got an actual problem?

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: reviving "custom" dump
  2022-11-11 06:13 reviving "custom" dump Rob Sargent <robjsargent@gmail.com>
  2022-11-11 06:29 ` Re: reviving "custom" dump Tom Lane <tgl@sss.pgh.pa.us>
@ 2022-11-11 06:35   ` Rob Sargent <robjsargent@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Rob Sargent @ 2022-11-11 06:35 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>

On 11/10/22 23:29, Tom Lane wrote:
> Rob Sargent<robjsargent@gmail.com>  writes:
>> Short version: Does a current version of postgres tolerate ascii dumps
>> from older versions?
> We intend it to.  Have you got an actual problem?
>
> 			regards, tom lane
I have to lay out options in the morning.  Thanks.  Now off to follow 
David's justified pointer.

^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2022-11-11 06:47 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-11-11 06:13 reviving "custom" dump Rob Sargent <robjsargent@gmail.com>
2022-11-11 06:29 ` David G. Johnston <david.g.johnston@gmail.com>
2022-11-11 06:47   ` Rob Sargent <robjsargent@gmail.com>
2022-11-11 06:29 ` Tom Lane <tgl@sss.pgh.pa.us>
2022-11-11 06:35   ` Rob Sargent <robjsargent@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox