Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 8C88DB5DD04 for ; Tue, 16 Aug 2011 10:35:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 18293-01-6 for ; Tue, 16 Aug 2011 13:35:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 19834B5DBE9 for ; Tue, 16 Aug 2011 10:35:04 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p7GDZ3m19564; Tue, 16 Aug 2011 09:35:03 -0400 (EDT) From: Bruce Momjian Message-Id: <201108161335.p7GDZ3m19564@momjian.us> Subject: Re: BUG #6161: Not enough memory error in psql with UTF8 console In-Reply-To: <201108121633.p7CGXiWv071602@wwwmaster.postgresql.org> To: Gavin Kistner Date: Tue, 16 Aug 2011 09:35:02 -0400 (EDT) CC: pgsql-bugs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.888 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.988 X-Spam-Level: X-Archive-Number: 201108/95 X-Sequence-Number: 30907 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 http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +