Skip site navigation (1) Skip section navigation (2)

Re: thousands comma numeric formatting in psql

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Eugen Nedelcu <eugen(at)sifolt(dot)ro>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: thousands comma numeric formatting in psql
Date: 2005-07-15 18:21:22
Message-ID: 200507151821.j6FILM722022@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
Eugen Nedelcu wrote:
> The new code is broken. Please test it with resonably large tables.
> Do not test it with querys like: select -132323435.34343;
> 
> If I use a query like:
> 
> select * from my_table limit 100;
> 
> I can't see anything on my screen until I hit CTRL^C
> 
> If I use a pager (\pset pager less) strange things happened:
> I can't see anything on my screen, hit CTRL^C, then quit psql,
> reset xterm, then less is still running and eat lots of memory and
> cpu.

I did:

	SELECT random() * 1000000000 INTO test 
	FROM generate_series(1,100000);
	\pset numericsep
	SELECT * FROM test;

and it seemed to work fine.  Did you do a complete rebuild/install?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

Responses

pgsql-patches by date

Next:From: Stephen FrostDate: 2005-07-15 19:10:31
Subject: Re: Change Ownership Permission Checks
Previous:From: Marko KreenDate: 2005-07-15 17:20:38
Subject: Re: 4 pgcrypto regressions failures - 1 unsolved

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group