pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tory M Blue <tmblue@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Odd postgres12 upgrade is changing or munging a password?
Date: Thu, 7 May 2020 12:32:36 -0700
Message-ID: <399093be-0a96-2432-8dd3-e1b8339bbb37@aklaver.com> (raw)
In-Reply-To: <CAEaSS0Z+P1VaXWZRqLTd4L6TO7xbAq9W5Lq5P3Z=fg8o1EHyBw@mail.gmail.com>
References: <CAEaSS0a=qz77XSHU8mLcBZQtSFQUM=_nxWGRAx7-Ms_KbmbW5w@mail.gmail.com>
	<d3ae572e-dafa-5fc8-d4f2-4599625cea6f@aklaver.com>
	<CAEaSS0Z+P1VaXWZRqLTd4L6TO7xbAq9W5Lq5P3Z=fg8o1EHyBw@mail.gmail.com>

On 5/7/20 12:24 PM, Tory M Blue wrote:
> Yes same password, I'm usingĀ a basic alter command to put the right 
> password back.
> 
> I'm doing another upgrade in an hour, and will do some more checks to 
> see if it's trying to use another password or what. I obviously can't 
> read the password from the file , so knowing if it's munged or other, 
> I'm not sure is possible.
> 
> Upgrade command i'm running
> 
> time /usr/pgsql-12/bin/pg_upgrade --old-bindir /usr/pgsql-9.5/bin/ 
> --new-bindir /usr/pgsql-12/bin/ --old-datadir /pgsql/9.5/data 
> --new-datadir /pgsql/12/data --link
> 
> So it's very odd. and I've not experienced this in other environments, 
> it's just this one. Now it's a bigger data set, but very odd.

Anything different about this environment e.g. locale?

What is the encoding/character set for the database?

> 
> I'm also not seeing any other data issues, just seems to be this one 
> password.

I'm assuming you have super user access so you could look at the 
password in:

https://www.postgresql.org/docs/12/view-pg-shadow.html

on the old server and then on the new server.


> 
> Thanks,
> 
> If there are commands I can run on the data before I do an alter, to 
> give someone more info, let me know
> 
> Tory
> 
> On Thu, May 7, 2020 at 12:08 PM Adrian Klaver <adrian.klaver@aklaver.com 
> <mailto:adrian.klaver@aklaver.com>> wrote:
> 
>     On 5/7/20 11:55 AM, Tory M Blue wrote:
>      > Going from 9.5 to 12 and 2 times now, I've had a password either go
>      > missing or munged. I've had to add an alter statement at the end
>     of the
>      > upgrade.
> 
>     What are the commands you are using?
> 
>     Is it the same password?
> 
>      >
>      > The DB is functioning fine, shut it down, do the upgrade and the
>      > password is munged. Seems like an odd occurrence, we have not
>     noted any
>      > other weird issues.
>      >
>      > Anyone else see or hear of this?
>      >
>      > Thanks
>      > Tory
> 
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (11+ messages)  latest in thread

Message-ID: <399093be-0a96-2432-8dd3-e1b8339bbb37@aklaver.com>
Permalink:  ../399093be-0a96-2432-8dd3-e1b8339bbb37@aklaver.com/
Also on:    postgresql.org/message-id/399093be-0a96-2432-8dd3-e1b8339bbb37@aklaver.com

 · 

reply

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: adrian.klaver@aklaver.com, tmblue@gmail.com
  Subject: Re: Odd postgres12 upgrade is changing or munging a password?
  In-Reply-To: <399093be-0a96-2432-8dd3-e1b8339bbb37@aklaver.com>
  References: <CAEaSS0a=qz77XSHU8mLcBZQtSFQUM=_nxWGRAx7-Ms_KbmbW5w@mail.gmail.com> <d3ae572e-dafa-5fc8-d4f2-4599625cea6f@aklaver.com> <CAEaSS0Z+P1VaXWZRqLTd4L6TO7xbAq9W5Lq5P3Z=fg8o1EHyBw@mail.gmail.com> <399093be-0a96-2432-8dd3-e1b8339bbb37@aklaver.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