pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Query returns no rows in pg_basebackup cluster
Date: Thu, 21 May 2020 15:13:27 -0700
Message-ID: <ea1e505d-d049-1d1d-e3b3-e655928949b8@aklaver.com> (raw)
In-Reply-To: <2B1267647FD14565B73801AF12CA1A88@dell2>
References: <2B1267647FD14565B73801AF12CA1A88@dell2>

On 5/21/20 1:20 PM, Andrus wrote:
> Hi!
> 
> In windows pg_basebackup was used to create base backup from Linux server.
> baas column data type is character(8)
> 
> In Linux server  query
> select *  from firma1.desktop where baas='_LOGIFAI'
> 
> returns 16 rows.
> 
> Windows server this query returns 0 rows.
> 
> In Windows server same query using like
> 
> select *  from firma1.desktop where baas like '_LOGIFAI'
> 
> returns properly 16 rows.

Are you referring to two different instances of Postgres on Windows?


> Maybe this is because database locale is not known in windows:
> 
> CREATE DATABASE sba
>     WITH    OWNER = sba_owner
>     ENCODING = 'UTF8'
>     LC_COLLATE = 'et_EE.UTF-8'
>     LC_CTYPE = 'et_EE.UTF-8'
>     TABLESPACE = pg_default
>     CONNECTION LIMIT = -1;
> 
> Correct encoding for windows should be
> 
> LC_COLLATE = 'Estonian_Estonia.1257'
> LC_CTYPE = 'Estonian_Estonia.1257'
> 
> IF so how to to fix windows cluster so that query returns proper result 
> in windows also?
> Database in Windows is in read-only (recovery) mode so it cannot changed.
> Postgres 12 is used.
> 
> Andrus.
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (25+ messages)  latest in thread

Message-ID: <ea1e505d-d049-1d1d-e3b3-e655928949b8@aklaver.com>
Permalink:  ../ea1e505d-d049-1d1d-e3b3-e655928949b8@aklaver.com/
Also on:    postgresql.org/message-id/ea1e505d-d049-1d1d-e3b3-e655928949b8@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, kobruleht2@hot.ee
  Subject: Re: Query returns no rows in pg_basebackup cluster
  In-Reply-To: <ea1e505d-d049-1d1d-e3b3-e655928949b8@aklaver.com>
  References: <2B1267647FD14565B73801AF12CA1A88@dell2> <ea1e505d-d049-1d1d-e3b3-e655928949b8@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