Re: [HACKERS] Pre-allocated free space for row updating (like PCTFREE)

2005-08-31 Thread Satoshi Nagayasu
Simon Riggs wrote: >>4. Allow to repair fragmentation in each page. >> >>Because updates cause fragmentation in the page. >> >>So we need to keep large continuous free space in each page, >>if we want to get more effective on PCTFREE feature. > > > ...doesn't VACUUM already do that? VACUUM gener

Re: [HACKERS] Pre-allocated free space for row updating (like PCTFREE)

2005-08-30 Thread Satoshi Nagayasu
Simon Riggs wrote: > The summary was: > > 1. Have a PCTFREE column added on a table by table basis I think a good place to keep PCTFREE value is a new column in the pg_class, and ALTER TABLE should be able to change this value. > 2. Apply PCTFREE for Inserts only > 3. Allow Updates to use the fu

Re: [HACKERS] Pre-allocated free space for row updating (like PCTFREE)

2005-08-24 Thread Josh Berkus
Satoshi, > I've created a new patch which can be applied to the current cvs tree. > > http://dpsql.sourceforge.net/pctfree.cvs.diff Hmmm ... I don't see where I set the GUC. How am I supposed to vary the PCTFREE amount? -- --Josh Josh Berkus Aglio Database Solutions San Francisco -

Re: [HACKERS] Pre-allocated free space for row updating (like PCTFREE)

2005-08-24 Thread Satoshi Nagayasu
Satoshi Nagayasu wrote: > Josh Berkus wrote: > >>Satoshi, if you can package up a patch on current CVS, I'll throw it at DBT2. > > Ok. I'll do it. I've created a new patch which can be applied to the current cvs tree. http://dpsql.sourceforge.net/pctfree.cvs.diff -- NAGAYASU Satoshi <[EMAIL P

Re: [HACKERS] Pre-allocated free space for row updating (like PCTFREE)

2005-08-23 Thread Satoshi Nagayasu
Josh Berkus wrote: > Satoshi, if you can package up a patch on current CVS, I'll throw it at DBT2. Ok. I'll do it. -- NAGAYASU Satoshi <[EMAIL PROTECTED]> ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate

Re: [HACKERS] Pre-allocated free space for row updating (like PCTFREE)

2005-08-23 Thread Jim C. Nasby
On Mon, Aug 22, 2005 at 10:18:25PM -0400, Tom Lane wrote: > "Jim C. Nasby" <[EMAIL PROTECTED]> writes: > > ... But I agree with Satoshi; if there are > > people who will benefit from this option (which doesn't hurt those who > > choose not to use it), why not put it in? > > Because there's no such

Re: [HACKERS] Pre-allocated free space for row updating (like PCTFREE)

2005-08-23 Thread Josh Berkus
Jim, Satoshi, > It should be possible to see what the crossover point is in terms of > benefit using dbt2 and tweaking the transactions that are run, something > I can do if there's interest. But I agree with Satoshi; if there are > people who will benefit from this option (which doesn't hurt thos

Re: [HACKERS] Pre-allocated free space for row updating (like PCTFREE)

2005-08-23 Thread Mark Kirkwood
Jim C. Nasby wrote: It should be possible to see what the crossover point is in terms of benefit using dbt2 and tweaking the transactions that are run, something I can do if there's interest. But I agree with Satoshi; if there are people who will benefit from this option (which doesn't hurt thos

Re: [HACKERS] Pre-allocated free space for row updating (like PCTFREE)

2005-08-22 Thread Satoshi Nagayasu
Tom Lane wrote: > "Jim C. Nasby" <[EMAIL PROTECTED]> writes: > >>... But I agree with Satoshi; if there are >>people who will benefit from this option (which doesn't hurt those who >>choose not to use it), why not put it in? > > > Because there's no such thing as a free lunch. Every option we s

Re: [HACKERS] Pre-allocated free space for row updating (like PCTFREE)

2005-08-22 Thread Tom Lane
"Jim C. Nasby" <[EMAIL PROTECTED]> writes: > ... But I agree with Satoshi; if there are > people who will benefit from this option (which doesn't hurt those who > choose not to use it), why not put it in? Because there's no such thing as a free lunch. Every option we support costs us in initial i

Re: [HACKERS] Pre-allocated free space for row updating (like PCTFREE)

2005-08-22 Thread Jim C. Nasby
On Sun, Aug 21, 2005 at 09:50:10PM -0400, Tom Lane wrote: > Satoshi Nagayasu <[EMAIL PROTECTED]> writes: > > I've done a quick hack to implement PCTFREE on PostgreSQL. > > ... > > According to my experiments, pgbench score was improved 10% or more > > with 1024 bytes free space. > > I'm not very e

Re: [HACKERS] Pre-allocated free space for row updating (like PCTFREE)

2005-08-21 Thread Satoshi Nagayasu
Tom Lane wrote: > I'm not very enthused about this. Enforcing 12.5% PCTFREE means that > you pay 12.5% extra I/O costs across the board for INSERT and SELECT > and then hope you can make it back (plus some more) on UPDATEs. > pgbench is a completely UPDATE-dominated benchmark and thus it makes > s

Re: [HACKERS] Pre-allocated free space for row updating (like PCTFREE)

2005-08-21 Thread Tom Lane
Satoshi Nagayasu <[EMAIL PROTECTED]> writes: > I've done a quick hack to implement PCTFREE on PostgreSQL. > ... > According to my experiments, pgbench score was improved 10% or more > with 1024 bytes free space. I'm not very enthused about this. Enforcing 12.5% PCTFREE means that you pay 12.5% ex

[HACKERS] Pre-allocated free space for row updating (like PCTFREE)

2005-08-21 Thread Satoshi Nagayasu
Hi all, I've done a quick hack to implement PCTFREE on PostgreSQL. As you know, it's inspired by Oracle's PCTFREE. http://www.csee.umbc.edu/help/oracle8/server.815/a67772/schema.htm#990 http://www.comp.hkbu.edu.hk/docs/o/oracle10g/server.101/b10743/cncpt031.gif Pre-allocated space for each bloc