public inbox for [email protected]
help / color / mirror / Atom feedRe: Dump version issues
2+ messages / 2 participants
[nested] [flat]
* Re: Dump version issues
@ 2025-04-23 20:02 Pawel Veselov <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Pawel Veselov @ 2025-04-23 20:02 UTC (permalink / raw)
To: Adrian Klaver <[email protected]>; +Cc: [email protected]
On Wed, Apr 23, 2025 at 9:13 PM Adrian Klaver <[email protected]> wrote:
> On 4/23/25 11:46, Pawel Veselov wrote:
> > Hello.
>
> > So, how come older software (according to versions) produces dump
> > files with a greater version
> > than the newer software can understand? Is this Ubuntu package
> > maintainers messing things up?
>
> Do:
>
> man postgresql-common
>
> to see how this handled.
>
> I have found that it is best to be explicit using the --cluster option.
Thank you, I would have never guessed.
$ pg_dump -V -h x
pg_dump (PostgreSQL) 17.4 (Ubuntu 17.4-1.pgdg22.04+2)
$ pg_dump -V
pg_dump (PostgreSQL) 12.20 (Ubuntu 12.20-0ubuntu0.20.04.1)
(facepalm)
I was using the latter checking what pg_dump version was actually being used.
Wasn't aware of this pg_wrapper business.
> Given a pg_dump, it would be nice if its "-V" output would say which
> version of the dump it would produce
Yeah, this wouldn't have helped a bit.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Dump version issues
@ 2025-04-23 20:19 Adrian Klaver <[email protected]>
parent: Pawel Veselov <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Klaver @ 2025-04-23 20:19 UTC (permalink / raw)
To: Pawel Veselov <[email protected]>; +Cc: [email protected]
On 4/23/25 13:02, Pawel Veselov wrote:
> On Wed, Apr 23, 2025 at 9:13 PM Adrian Klaver <[email protected]> wrote:
>
>> On 4/23/25 11:46, Pawel Veselov wrote:
>>> Hello.
>>
>>> So, how come older software (according to versions) produces dump
>>> files with a greater version
>>> than the newer software can understand? Is this Ubuntu package
>>> maintainers messing things up?
>>
>> Do:
>>
>> man postgresql-common
>>
>> to see how this handled.
>>
>> I have found that it is best to be explicit using the --cluster option.
>
> Thank you, I would have never guessed.
>
> $ pg_dump -V -h x
> pg_dump (PostgreSQL) 17.4 (Ubuntu 17.4-1.pgdg22.04+2)
> $ pg_dump -V
> pg_dump (PostgreSQL) 12.20 (Ubuntu 12.20-0ubuntu0.20.04.1)
>
> (facepalm)
>
> I was using the latter checking what pg_dump version was actually being used.
> Wasn't aware of this pg_wrapper business.
If you do something like:
ls -al /usr/bin/pg_dump
you will find pg_dump is a sym link to:
/usr/share/postgresql-common/pg_wrapper
which is a Perl script that does the selection.
The same holds for the other Postgres commands in /usr/bin/.
FYI, psql will always resolve to latest version installed, --cluster
will have no affect on it.
>
>> Given a pg_dump, it would be nice if its "-V" output would say which
>> version of the dump it would produce
>
> Yeah, this wouldn't have helped a bit.
--
Adrian Klaver
[email protected]
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-04-23 20:19 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-04-23 20:02 Re: Dump version issues Pawel Veselov <[email protected]>
2025-04-23 20:19 ` Adrian Klaver <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox