Re: Order by and timestamp SOLVED - Mailing list pgsql-general

From Björn Lundin
Subject Re: Order by and timestamp SOLVED
Date
Msg-id 5E2FF59B-3E85-42C8-9C83-FED22A337695@gmail.com
Whole thread Raw
In response to Re: Order by and timestamp  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Order by and timestamp SOLVED
Re: Order by and timestamp SOLVED
List pgsql-general



So insert is
bnl@ibm2:~/db$ psql
Tidtagning är på.
AUTOCOMMIT off
psql (9.6.15, server 9.4.15)
Skriv "help" för hjälp.

Except you are using psql 9.6.15 against a 9.4.15 server.

What happens if you use psql(9.4.15) to do sort query against 9.4.15 server?

So this is more than strange

bnl@ibm2:~$ /usr/lib/postgresql/9.4/bin/psql
Timing is on.
AUTOCOMMIT off
psql (9.4.15)
Type "help" for help.


This. works. I did not realize I ran different client/server versions.
9.6 must have come with a Debian upgrade where I did not migrate the database to 9.6, 
but got the psql 9.6 as default (/sr/bin/psql)


However AFTER I checked the bad sorting - sep/oct 2016 and early apr 2017 
With psql 9.4 I connected with psql 9.6 again.
And now the sorting error is  gone her too!

I cannot reproduce it anymore

So I learned this - always use same version of client and server

Many thanks to Adrian and Tom


--
Björn Lundin




pgsql-general by date:

Previous
From: Samuel Smith
Date:
Subject: Re: Invalid byte sequence errors on DB restore
Next
From: "Daniel Westermann (DWE)"
Date:
Subject: Temporary tablespaces on a RAM disk