Re: [GENERAL] Question about OID and TCID

2010-11-29 Thread Raymond O'Donnell
On 29/11/2010 16:56, Zhipan Wang wrote: Since in-place seems not possible, I am trying to use arrays to store different ranges of that column, and it's fast to fetch a big array, so I believe an array is stored continuously on disk. I can convert an array to a column easily by unnest() function,

Re: [GENERAL] Question about OID and TCID

2010-11-29 Thread Zhipan Wang
ction that converts a column to an array. Is there a efficient method to do that? Thanks - Original Message - From: "Guillaume Lelarge" To: "Zhipan Wang" Cc: pgsql-general@postgresql.org Sent: Sunday, November 28, 2010 12:59:46 AM GMT -08:00 US/Canada Pacific Subject

Re: [GENERAL] Question about OID and TCID

2010-11-28 Thread Matthew Walden
> So the in-place update is a vital part of the program, because a range of values > of column col should be stored together on the disk. Is there any way to do such > a in-place update without generating much extra overhead? > Although in-place update is not possible, can he not use partitioning

Re: [GENERAL] Question about OID and TCID

2010-11-28 Thread Guillaume Lelarge
Please send your answer (also) to the list. Le 28/11/2010 10:23, zhipan Wang a écrit : > [...] > Thanks a lot for your detailed reply. I am trying to implement the idea > proposed > in the paper Database Cracking. The basic idea is like this: > > When a query with a range predicate like "a col

Re: [GENERAL] Question about OID and TCID

2010-11-28 Thread Guillaume Lelarge
Le 27/11/2010 09:52, Zhipan Wang a écrit : > 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. You shouldn't rely on the order on disk. It will change as so

Re: [GENERAL] Question about OID and TCID

2010-11-28 Thread Dmitriy Igrishin
Hey Zhipan, 2010/11/27 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

[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