Re: [GENERAL] plpyhton

2010-11-27 Thread c k
How can we implement procedure cache? Cane you please give details regarding this? It will be helpful for me. Thanks and regards, CPK On Fri, Nov 26, 2010 at 11:53 PM, Martin Gainty wrote: > depends on the configuration implemented to enable caching > capability for each type > *usually* faste

Re: [GENERAL] Terms advice.

2010-11-27 Thread Dmitriy Igrishin
Hey Craig, I know about libpqxx. But I like to implement my library just for fun :-). The one goal of my library is to support all features of libpq. So, I don't intent to implement the protocol from scratch and use libpq as basis. Another goal of my library is to be very clean and consistent in

[GENERAL] array_agg + limit

2010-11-27 Thread Emanuel Calvo Franco
I'm having this 'issue': coches=# select array_agg(patente order by fecha desc) from dia4.infraccion limit 6; array_agg --- -

Re: [GENERAL] array_agg + limit

2010-11-27 Thread Guillaume Lelarge
Le 27/11/2010 13:59, Emanuel Calvo Franco a écrit : > I'm having this 'issue': > > coches=# select array_agg(patente order by fecha desc) from > dia4.infraccion limit 6; > >array_agg > > -

Re: [GENERAL] array_agg + limit

2010-11-27 Thread Pavel Stehule
Hello probably you want select array_agg(patente) from (select patente from dia4.infaccion ORDER BY fecha DESC LIMIT 6) x Regards Pavel 2010/11/27 Emanuel Calvo Franco : > I'm having this 'issue': > > coches=# select array_agg(patente order by fecha desc) from > dia4.infraccion limit 6; > >  

Re: [GENERAL] Help on explain analyze

2010-11-27 Thread Alban Hertroys
On 26 Nov 2010, at 6:04, Leif Jensen wrote: Looking at your query, I'm kind of wondering why you're not letting the database do the time-zone calculations? But, that's not what your question was about: > I have concentrate my effort on the (double) 'Seq Scan': > >

Re: [GENERAL] array_agg + limit

2010-11-27 Thread Lew
Emanuel Calvo Franco wrote: I'm having this 'issue': coches=# select array_agg(patente order by fecha desc) from dia4.infraccion limit 6; array_agg --

Re: [GENERAL] array_agg + limit

2010-11-27 Thread Emanuel Calvo Franco
2010/11/27 Lew : > Emanuel Calvo Franco wrote: >> >> I'm having this 'issue': >> >> coches=# select array_agg(patente order by fecha desc) from >> dia4.infraccion limit 6; >> >>                                array_agg >> -- >>

[GENERAL] Question about OID and TCID

2010-11-27 Thread Zhipan Wang
Hi, I want to access part of a table on the disk sequentially, i,e., when I get to a tuple in the table, I need to read several pages of data in the table starting from this tuple. I guess CTID could be translated to physical address on the disk to retrieve this tuple, right? If so, how do I us