From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Upgrade/Downgrade
Date: Fri, 24 Aug 2018 09:27:37 +0300
Message-ID: <2bb082bc-9795-4bfe-f9c5-a0789b8b4c4e@matrix.gatewaynet.com> (raw)
In-Reply-To: <CANNMO++f+mTMTjnjnbsxcYNPSGc-39RpD08pmo1A8UKLifDWWw@mail.gmail.com>
References: <CAM-M3T=e5x1+K_mgE+3S+LPyx=hJtUVw5h=_Jnoptj6tChOV1w@mail.gmail.com>
<4BAC5CA6-E127-4563-B81A-220CC87A6914@a-kretschmer.de>
<CAM-M3TkN2Z86ULk+GAMiqgsb4oxr51SmpcVJY7oGoKm5kcw6ZA@mail.gmail.com>
<7d8c3ac3-2cf2-d914-ea2f-6179b10937b5@matrix.gatewaynet.com>
<a6b425ba-528e-5def-5b97-a68c5a0830e5@commandprompt.com>
<CANNMO++f+mTMTjnjnbsxcYNPSGc-39RpD08pmo1A8UKLifDWWw@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: achill@matrix.gatewaynet.com
Subject: Re: Upgrade/Downgrade
In-Reply-To: <2bb082bc-9795-4bfe-f9c5-a0789b8b4c4e@matrix.gatewaynet.com>
References: <CAM-M3T=e5x1+K_mgE+3S+LPyx=hJtUVw5h=_Jnoptj6tChOV1w@mail.gmail.com> <4BAC5CA6-E127-4563-B81A-220CC87A6914@a-kretschmer.de> <CAM-M3TkN2Z86ULk+GAMiqgsb4oxr51SmpcVJY7oGoKm5kcw6ZA@mail.gmail.com> <7d8c3ac3-2cf2-d914-ea2f-6179b10937b5@matrix.gatewaynet.com> <a6b425ba-528e-5def-5b97-a68c5a0830e5@commandprompt.com> <CANNMO++f+mTMTjnjnbsxcYNPSGc-39RpD08pmo1A8UKLifDWWw@mail.gmail.com> <2bb082bc-9795-4bfe-f9c5-a0789b8b4c4e@matrix.gatewaynet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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