Re: [GENERAL] Dump/Reload pg_statistic to cut time from pg_upgrade?

2013-09-01 Thread Jeff Davis
On Mon, 2013-07-08 at 14:20 -0500, Jerry Sievers wrote: Planning to pg_upgrade some large (3TB) clusters using hard link method. Run time for the upgrade itself takes around 5 minutes. Nice!! Origin version 8.4 and destination version 9.1. Unfortunately the post-upgrade analyze of the

Re: [GENERAL] Why is NULL = unbounded for rangetypes?

2013-09-01 Thread Jeff Davis
On Fri, 2013-08-30 at 11:22 +0200, Andreas Joseph Krogh wrote: But I agree that returning NULL would be OK, then it would be easy to catch in queries when starting playing with range-types in queries. Having it implicitly mean infinity comes as a surprise, to me at least. Agreed. This was

Re: [GENERAL] Adding ip4r to Postgresql core?

2013-09-01 Thread Jeff Davis
On Wed, 2013-08-07 at 23:24 -0700, Chris Travers wrote: On Wed, Aug 7, 2013 at 9:44 PM, Tom Lane t...@sss.pgh.pa.us wrote: So the obvious question today is whether this isn't duplicative of the range datatype stuff. IOW, why wouldn't we be better off to

[GENERAL] store multiple rows with the SELECT INTO statement

2013-09-01 Thread Janek Sendrowski
Hi, Why is it only possible to store one row by a query which returns multiple rows using the SELECT INTO statement. and How can I do a Query on a record varialbe,somehow like this: SELECT * FROM v_rec Janek Sendrowski

Re: [GENERAL] store multiple rows with the SELECT INTO statement

2013-09-01 Thread Adrian Klaver
On 09/01/2013 05:23 PM, Janek Sendrowski wrote: Hi, Why is it only possible to store one row by a query which returns multiple rows using the SELECT INTO statement. and How can I do a Query on a record varialbe, somehow like this: SELECT * FROM v_rec You can't a record variable can only hold a

Re: [GENERAL] My Experiment of PG crash when dealing with huge amount of data

2013-09-01 Thread 高健
To spare memory, you would want to use something like: insert into test01 select generate_series, repeat(chr(int4(random()*26)+65),1024) from generate_series(1,2457600); Thanks a lot! What I am worrying about is that: If data grows rapidly, maybe our customer will use too much memory , Is

Re: [GENERAL] My Experiment of PG crash when dealing with huge amount of data

2013-09-01 Thread Tom Lane
=?UTF-8?B?6auY5YGl?= luckyjack...@gmail.com writes: If data grows rapidly, maybe our customer will use too much memory , Is ulimit command a good idea for PG? There's no received wisdom saying that it is. There's a fairly widespread consensus that disabling OOM kill can be a good idea, but I