pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Mohammed falih <moh.falih98@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: The postgres server don't work
Date: Sat, 8 Jan 2022 15:40:49 -0800
Message-ID: <406d84d5-ffcf-b8e0-ff72-affad833ecb0@aklaver.com> (raw)
In-Reply-To: <CADqaUh9hr1Q9OZLuUjLA6cxTowpwFa1roK-26Y+208K3o9vyig@mail.gmail.com>
References: <CADqaUh9tssCzjhE2Fnvso-ce29RjWMs6+9D6xML0mszGmv1Siw@mail.gmail.com>
	<28407a68-9917-31ea-bca8-08fb9dfd30c8@aklaver.com>
	<CADqaUh87TZYhJVrGBPt9e5yDWE4cLdUW6BtRLxH1x24UaqYhfw@mail.gmail.com>
	<66f1e144-ed80-17f1-1996-c4b8828a602d@aklaver.com>
	<CADqaUh9hr1Q9OZLuUjLA6cxTowpwFa1roK-26Y+208K3o9vyig@mail.gmail.com>

On 1/8/22 15:29, Mohammed falih wrote:
> yes I think the service doesn't even start

Yet below you said it does.

> 
> I have only the default protection that comes with the operating system
> 
> wow the postgres started working!! but the problem came back that talks

Did you revert the change you made earlier to get it to work?


> about console code " WARNING: Console code page (437) differs from 
> Windows code page (1252)
> 
> 8-bit characters mightnot  work correctly. See psql reference
>           page "Notes for Windows users"for  details."
> 

So follow the instructions here :

https://www.postgresql.org/docs/current/app-psql.html

"
Notes for Windows Users

psql is built as a “console application”. Since the Windows console 
windows use a different encoding than the rest of the system, you must 
take special care when using 8-bit characters within psql. If psql 
detects a problematic console code page, it will warn you at startup. To 
change the console code page, two things are necessary:

     Set the code page by entering cmd.exe /c chcp 1252. (1252 is a code 
page that is appropriate for German; replace it with your value.) If you 
are using Cygwin, you can put this command in /etc/profile.

     Set the console font to Lucida Console, because the raster font 
does not work with the ANSI code page.
"

In the terminal before running psql do:

cmd.exe /c chcp 1252



-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (14+ messages)  latest in thread

Message-ID: <406d84d5-ffcf-b8e0-ff72-affad833ecb0@aklaver.com>
Permalink:  ../406d84d5-ffcf-b8e0-ff72-affad833ecb0@aklaver.com/
Also on:    postgresql.org/message-id/406d84d5-ffcf-b8e0-ff72-affad833ecb0@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, moh.falih98@gmail.com
  Subject: Re: The postgres server don't work
  In-Reply-To: <406d84d5-ffcf-b8e0-ff72-affad833ecb0@aklaver.com>
  References: <CADqaUh9tssCzjhE2Fnvso-ce29RjWMs6+9D6xML0mszGmv1Siw@mail.gmail.com> <28407a68-9917-31ea-bca8-08fb9dfd30c8@aklaver.com> <CADqaUh87TZYhJVrGBPt9e5yDWE4cLdUW6BtRLxH1x24UaqYhfw@mail.gmail.com> <66f1e144-ed80-17f1-1996-c4b8828a602d@aklaver.com> <CADqaUh9hr1Q9OZLuUjLA6cxTowpwFa1roK-26Y+208K3o9vyig@mail.gmail.com> <406d84d5-ffcf-b8e0-ff72-affad833ecb0@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