pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedUpgrade/Downgrade
8+ messages / 6 participants
[nested] [flat]
* Upgrade/Downgrade
@ 2018-08-23 10:51 Sonam Sharma <sonams1209@gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Sonam Sharma @ 2018-08-23 10:51 UTC (permalink / raw)
To: pgsql-general
Hello,
My postgres version is 10.4 and I want to downgrade it to 9.5.
and one is at 9.2 and need to upgrade it to 9.5.
Can someone please help how to do this.
Unable to find anything online
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Upgrade/Downgrade
@ 2018-08-23 11:26 Andreas Kretschmer <andreas@a-kretschmer.de>
parent: Sonam Sharma <sonams1209@gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Andreas Kretschmer @ 2018-08-23 11:26 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org; Sonam Sharma <sonams1209@gmail.com>; pgsql-general
On 23 August 2018 12:51:08 CEST, Sonam Sharma <sonams1209@gmail.com> wrote:
>Hello,
>
>My postgres version is 10.4 and I want to downgrade it to 9.5.
>and one is at 9.2 and need to upgrade it to 9.5.
>Can someone please help how to do this.
>Unable to find anything online
Why downgrade? Dump and restore should do the job, have you tried it?
Regards, Andreas
--
2ndQuadrant - The PostgreSQL Support Company
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Upgrade/Downgrade
@ 2018-08-23 11:30 Sonam Sharma <sonams1209@gmail.com>
parent: Andreas Kretschmer <andreas@a-kretschmer.de>
0 siblings, 1 reply; 8+ messages in thread
From: Sonam Sharma @ 2018-08-23 11:30 UTC (permalink / raw)
To: Andreas Kretschmer <andreas@a-kretschmer.de>; +Cc: pgsql-general@lists.postgresql.org; pgsql-general
No, I didn't. The version is not compatible with application, so need to
downgrade it
On Thu, Aug 23, 2018, 4:56 PM Andreas Kretschmer <andreas@a-kretschmer.de>
wrote:
> On 23 August 2018 12:51:08 CEST, Sonam Sharma <sonams1209@gmail.com>
> wrote:
> >Hello,
> >
> >My postgres version is 10.4 and I want to downgrade it to 9.5.
> >and one is at 9.2 and need to upgrade it to 9.5.
> >Can someone please help how to do this.
> >Unable to find anything online
>
> Why downgrade? Dump and restore should do the job, have you tried it?
>
> Regards, Andreas
>
>
> --
> 2ndQuadrant - The PostgreSQL Support Company
>
>
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Upgrade/Downgrade
@ 2018-08-23 11:47 Achilleas Mantzios <achill@matrix.gatewaynet.com>
parent: Sonam Sharma <sonams1209@gmail.com>
0 siblings, 2 replies; 8+ messages in thread
From: Achilleas Mantzios @ 2018-08-23 11:47 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 23/08/2018 14:30, Sonam Sharma wrote:
> No, I didn't. The version is not compatible with application, so need to downgrade it
Have you tried to tweak postgresql.conf ?
What do you mean is not compatible? What's the problem?
>
> On Thu, Aug 23, 2018, 4:56 PM Andreas Kretschmer <andreas@a-kretschmer.de <mailto:andreas@a-kretschmer.de>> wrote:
>
> On 23 August 2018 12:51:08 CEST, Sonam Sharma <sonams1209@gmail.com <mailto:sonams1209@gmail.com>> wrote:
> >Hello,
> >
> >My postgres version is 10.4 and I want to downgrade it to 9.5.
> >and one is at 9.2 and need to upgrade it to 9.5.
> >Can someone please help how to do this.
> >Unable to find anything online
>
> Why downgrade? Dump and restore should do the job, have you tried it?
>
> Regards, Andreas
>
>
> --
> 2ndQuadrant - The PostgreSQL Support Company
>
--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Upgrade/Downgrade
@ 2018-08-23 14:55 Dmitri Maziuk <dmaziuk@bmrb.wisc.edu>
parent: Achilleas Mantzios <achill@matrix.gatewaynet.com>
1 sibling, 0 replies; 8+ messages in thread
From: Dmitri Maziuk @ 2018-08-23 14:55 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On Thu, 23 Aug 2018 14:47:25 +0300
Achilleas Mantzios <achill@matrix.gatewaynet.com> wrote:
> What do you mean is not compatible? What's the problem?
As I recall there's several SETs and some other stuff that v.10 spits out that earlier versions do not recognize. Nothing that a little sed script can't fix but you need to understand what you're doing.
--
Dmitri Maziuk <dmaziuk@bmrb.wisc.edu>
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Upgrade/Downgrade
@ 2018-08-23 18:43 Joshua D. Drake <jd@commandprompt.com>
parent: Achilleas Mantzios <achill@matrix.gatewaynet.com>
1 sibling, 1 reply; 8+ messages in thread
From: Joshua D. Drake @ 2018-08-23 18:43 UTC (permalink / raw)
To: Achilleas Mantzios <achill@matrix.gatewaynet.com>; pgsql-general@lists.postgresql.org
On 08/23/2018 04:47 AM, Achilleas Mantzios wrote:
> On 23/08/2018 14:30, Sonam Sharma wrote:
>> No, I didn't. The version is not compatible with application, so need
>> to downgrade it
>
> Have you tried to tweak postgresql.conf ?
> What do you mean is not compatible? What's the problem?
My guess would be that they have a vendor supported application that is
*only* supported on 9.5. I run into this more often than I like.
JD
--
Command Prompt, Inc. || http://the.postgres.company/ || @cmdpromptinc
*** A fault and talent of mine is to tell it exactly how it is. ***
PostgreSQL centered full stack support, consulting and development.
Advocate: @amplifypostgres || Learn: https://postgresconf.org
***** Unless otherwise stated, opinions are my own. *****
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Upgrade/Downgrade
@ 2018-08-23 19:40 Nikolay Samokhvalov <samokhvalov@gmail.com>
parent: Joshua D. Drake <jd@commandprompt.com>
0 siblings, 1 reply; 8+ messages in thread
From: Nikolay Samokhvalov @ 2018-08-23 19:40 UTC (permalink / raw)
To: Joshua Drake <jd@commandprompt.com>; +Cc: achill@matrix.gatewaynet.com; pgsql-general@lists.postgresql.org
On Thu, Aug 23, 2018 at 11:44 AM Joshua D. Drake <jd@commandprompt.com>
wrote:
> On 08/23/2018 04:47 AM, Achilleas Mantzios wrote:
> > On 23/08/2018 14:30, Sonam Sharma wrote:
> >> No, I didn't. The version is not compatible with application, so need
> >> to downgrade it
> >
> > Have you tried to tweak postgresql.conf ?
> > What do you mean is not compatible? What's the problem?
>
> My guess would be that they have a vendor supported application that is
> *only* supported on 9.5. I run into this more often than I like.
>
Same story.
I suppose it's related (at least partially) xlog->wal and
**_location->**_lsn renamings in function names (full list made in Postgres
10:
https://wiki.postgresql.org/wiki/New_in_postgres_10#Renaming_of_.22xlog.22_to_.22wal.22_Globally_.28...
)
Those 10's changes are really painful.
I wish there were be some grace period, say 2-3 years, when both pg*_xlog_*
function names would also work as aliases for pg*_wal_**.
BTW, if the reason of downgrading is really related only these renamings,
it might be less stressful just to create function aleases, like:
create function pg_catalog.pg_last_xlog_receive_location() returns pg_lsn
as $$
select pg_current_wal_lsn();
$$ language sql;
+ granting proper permissions to specified DB roles, where needed.
Of course, it's hacky and should be only as a temporary solution until the
app is adjusted to support Postgres 10+.
But it gives an ability to have all good things added to Postgres 9.6 and
10.
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Upgrade/Downgrade
@ 2018-08-24 06:27 Achilleas Mantzios <achill@matrix.gatewaynet.com>
parent: Nikolay Samokhvalov <samokhvalov@gmail.com>
0 siblings, 0 replies; 8+ messages in thread
From: Achilleas Mantzios @ 2018-08-24 06:27 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 23/08/2018 22:40, Nikolay Samokhvalov wrote:
> On Thu, Aug 23, 2018 at 11:44 AM Joshua D. Drake <jd@commandprompt.com <mailto:jd@commandprompt.com>> wrote:
>
> On 08/23/2018 04:47 AM, Achilleas Mantzios wrote:
> > On 23/08/2018 14:30, Sonam Sharma wrote:
> >> No, I didn't. The version is not compatible with application, so need
> >> to downgrade it
> >
> > Have you tried to tweak postgresql.conf ?
> > What do you mean is not compatible? What's the problem?
>
> My guess would be that they have a vendor supported application that is
> *only* supported on 9.5. I run into this more often than I like.
>
>
> Same story.
>
> I suppose it's related (at least partially) xlog->wal and **_location->**_lsn renamings in function names (full list made in Postgres 10:
> https://wiki.postgresql.org/wiki/New_in_postgres_10#Renaming_of_.22xlog.22_to_.22wal.22_Globally_.28...)
> Those 10's changes are really painful.
>
> I wish there were be some grace period, say 2-3 years, when both pg*_xlog_* function names would also work as aliases for pg*_wal_**.
yes this is true for scripts, monitoring, but for app? I doubt many apps depend on wal/lsn related functions.
>
> BTW, if the reason of downgrading is really related only these renamings, it might be less stressful just to create function aleases, like:
>
> create function pg_catalog.pg_last_xlog_receive_location() returns pg_lsn as $$
> select pg_current_wal_lsn();
> $$ language sql;
>
>
> + granting proper permissions to specified DB roles, where needed.
>
> Of course, it's hacky and should be only as a temporary solution until the app is adjusted to support Postgres 10+.
> But it gives an ability to have all good things added to Postgres 9.6 and 10.
--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2018-08-24 06:27 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-08-23 10:51 Upgrade/Downgrade Sonam Sharma <sonams1209@gmail.com>
2018-08-23 11:26 ` Andreas Kretschmer <andreas@a-kretschmer.de>
2018-08-23 11:30 ` Sonam Sharma <sonams1209@gmail.com>
2018-08-23 11:47 ` Achilleas Mantzios <achill@matrix.gatewaynet.com>
2018-08-23 14:55 ` Dmitri Maziuk <dmaziuk@bmrb.wisc.edu>
2018-08-23 18:43 ` Joshua D. Drake <jd@commandprompt.com>
2018-08-23 19:40 ` Nikolay Samokhvalov <samokhvalov@gmail.com>
2018-08-24 06:27 ` Achilleas Mantzios <achill@matrix.gatewaynet.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