pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Gavin Kistner <gkistner@nvidia.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6161: Not enough memory error in psql with UTF8 console
Date: Tue, 16 Aug 2011 09:35:02 -0400 (EDT)
Message-ID: <201108161335.p7GDZ3m19564@momjian.us> (raw)
In-Reply-To: <201108121633.p7CGXiWv071602@wwwmaster.postgresql.org>


Wow, that is odd.  Can you get us a backtrace of psql in that case?

---------------------------------------------------------------------------

Gavin Kistner wrote:
> 
> The following bug has been logged online:
> 
> Bug reference:      6161
> Logged by:          Gavin Kistner
> Email address:      gkistner@nvidia.com
> PostgreSQL version: 9.0.4
> Operating system:   Windows 7x64
> Description:        Not enough memory error in psql with UTF8 console
> Details: 
> 
> 1. Create registry key "HKEY_LOCAL_MACHINE\Software\Microsoft\Command
> Processor\Autorun" with value "@chcp 65001>nul" to set Windows console to
> UTF8 (see url[1]).
> 
> 2. Open a new cmd.exe window
> 
> 3. Connect to a simple database using psql.exe
> --> Text displayed:
> WARNING: Console code page (65001) differs from Windows code page (1252)
>          8-bit characters might not work correctly. See psql reference
>          page "Notes for Windows users" for details.
> 
> 4. Type "\dt"
> 
> EXPECTED: List of tables.
> ACTUAL: "Not enough memory." displayed.
> 
> 5. \q and close the cmd.exe window.
> 6. Delete the Autorun registry key.
> 7. Repeat steps 2-3
> --> Text displayed:
> WARNING: Console code page (437) differs from Windows code page (1252)
>          8-bit characters might not work correctly. See psql reference
>          page "Notes for Windows users" for details.
> 
> 4. Type "\dt"
> --> List of tables is properly displayed
> 
> [1] http://superuser.com/questions/269818
> 
> -- 
> Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +



view thread (3+ messages)  latest in thread

Message-ID: <201108161335.p7GDZ3m19564@momjian.us>
Permalink:  ../201108161335.p7GDZ3m19564@momjian.us/
Also on:    postgresql.org/message-id/201108161335.p7GDZ3m19564@momjian.us

 · 

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-bugs@postgresql.org
  Cc: bruce@momjian.us, gkistner@nvidia.com
  Subject: Re: BUG #6161: Not enough memory error in psql with UTF8 console
  In-Reply-To: <201108161335.p7GDZ3m19564@momjian.us>
  References: <201108121633.p7CGXiWv071602@wwwmaster.postgresql.org> <201108161335.p7GDZ3m19564@momjian.us>

* 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