[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: postgres 9.6.2 update breakage
From: |
Christopher Allan Webber |
Subject: |
Re: postgres 9.6.2 update breakage |
Date: |
Sat, 13 May 2017 16:33:59 -0500 |
User-agent: |
mu4e 0.9.18; emacs 25.2.1 |
Roel Janssen writes:
> Jan Nieuwenhuizen writes:
>
>> Hi!
>>
>> I reconfigured my system and pulled in the postgres 9.6.2 update. Now
>> postgres does not start, /var/log/messages has
>>
>> May 12 13:02:52 localhost postgres[451]: [1-1] FATAL: database files
>> are incompatible with server
>> May 12 13:02:52 localhost postgres[451]: [1-2] DETAIL: The data
>> directory was initialized by PostgreSQL version 9.5, which is not compatible
>> with this version 9.6.2.
>>
>>
>> I have reverted the postgres update and everything is "fine" again.s
>
> I think database upgrades can be performed with 'pg_upgrade', which
> is included in the postgresql package. The command's '--help' switch
> even includes an example.
>
> In my experience (9.2 > 9.3, 9.3 > 9.4, 9.4 > 9.5), the upgrades went
> just fine. You have to stop the postgresql daemon, perform the
> upgrade, and start it again.
Could you provide the steps you used to upgrade using pg_upgrade?
It seems it needs to reference the old version of posgres, so we'll need
to keep the old version around every time we bump the postgres version.
We aren't doing that currently. If I just do:
address@hidden:/tmp$ sudo -u postgres pg_upgrade
You must identify the directory where the old cluster binaries reside.
Please use the -b command-line option or the PGBINOLD environment variable.
Failure, exiting
Well, ok, so maybe we could keep the previous verison of postgres
around. But even then, this seems like it is going to be annoying for
users because you'll need to install both versions of postres and figure
out what the paths are to point pg_upgrade at. Am I wrong?
Hence, I think having a wrapper script that does this for users (maybe
even through some dumb gexp) would be nice..
- postgres 9.6.2 update breakage, Jan Nieuwenhuizen, 2017/05/13
- Re: postgres 9.6.2 update breakage, Roel Janssen, 2017/05/13
- Re: postgres 9.6.2 update breakage,
Christopher Allan Webber <=
- Re: postgres 9.6.2 update breakage, Roel Janssen, 2017/05/13
- Re: postgres 9.6.2 update breakage, Jan Nieuwenhuizen, 2017/05/14
- Re: postgres 9.6.2 update breakage, Christopher Allan Webber, 2017/05/14
- Re: postgres 9.6.2 update breakage, Roel Janssen, 2017/05/15
- Re: [HACKERS] postgres 9.6.2 update breakage, Peter Eisentraut, 2017/05/15
Re: postgres 9.6.2 update breakage, Christopher Allan Webber, 2017/05/13