Re: [HACKERS] WAL dump tool

2009-05-17 Thread Rodrigo E . De León Plicet
On Sun, May 10, 2009 at 12:23 AM, Robert Treat wrote: > On Saturday 09 May 2009 00:20:43 Jaime Casanova wrote: >> On Fri, May 8, 2009 at 3:43 AM, higepon wrote: >> > Hi. >> > Is the following todo item still necessary? >> > >> >  Create dump tool for write-ahead logs for use in determining >> > t

Re: [HACKERS] canonical pathkey

2009-05-17 Thread Tom Lane
Werner Echezuria writes: > what is a canonical pathkey? See src/backend/optimizer/README regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] canonical pathkey

2009-05-17 Thread Werner Echezuria
Hi, what is a canonical pathkey? Thanks

Re: [HACKERS] Optimizing Read-Only Scalability

2009-05-17 Thread Simon Riggs
On Sat, 2009-05-16 at 23:36 -0400, Jignesh K. Shah wrote: > Simon Riggs wrote: > > > >>> So we can optimize away the scan through the procarray by doing two "if" > >>> tests, one outside of the lock, one inside. In normal running, both will > >>> be optimized away, though in read-only periods w

Re: [HACKERS] generate_series from now to infinity...

2009-05-17 Thread Tom Lane
hubert depesz lubaczewski writes: > why is it not limiting generate_series in the second example? nodeFunctionscan.c sucks the whole SRF output into a tuplestore before returning any of it. In principle you could do something different for a value-per-call SRF, but it would require a second whol

Re: [HACKERS] generate_series from now to infinity...

2009-05-17 Thread Dickson S. Guedes
Em Dom, 2009-05-17 às 19:22 +0200, hubert depesz lubaczewski escreveu: > it doesn't for this query: > > SELECT i from generate_series(now(), CAST('infinity'::date AS > timestamp), interval '1 hour') as x (i) limit 3; > > which (as far as i understand it) should be the same. > > why is it not lim

Re: [HACKERS] generate_series from now to infinity...

2009-05-17 Thread hubert depesz lubaczewski
On Sun, May 17, 2009 at 01:38:35PM -0300, Dickson S. Guedes wrote: > I suggested him to use LIMIT. interesting. I just tested (on beta1), that while limit works in this query: SELECT generate_series(now(), CAST('infinity'::date AS timestamp), interval '1 hour') limit 3; i.e. it returns 3 rows in

Re: [HACKERS] generate_series from now to infinity...

2009-05-17 Thread Dickson S. Guedes
Em Sáb, 2009-05-16 às 23:40 -0400, Tom Lane escreveu: > "Dickson S. Guedes" writes: > > Is a simple "SELECT generate_series(now(), CAST('infinity'::date AS > > timestamp), interval '1 hour');" working forever, an expected > > behavior? > > Uh, what were you expecting it to do? Perhaps, a HINT?

Re: [HACKERS] generate_series from now to infinity...

2009-05-17 Thread Robert Haas
On May 16, 2009, at 11:58 PM, Brendan Jurd wrote: On Sun, May 17, 2009 at 1:40 PM, Tom Lane wrote: "Dickson S. Guedes" writes: Is a simple "SELECT generate_series(now(), CAST('infinity'::date AS timestamp), interval '1 hour');" working forever, an expected behavior? Uh, what were you expe