Re: [HACKERS] WAL -> Replication

2002-04-25 Thread Curt Sampson
On Thu, 25 Apr 2002, Bruce Momjian wrote: > WAL files are kept only until an fsync(), checkpoint, then reused. One could keep them longer though, if one really wanted to. > Also, the info is tied to direct locations in the file. You could do > this for hot backup, but it would require quite bi

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Curt Sampson
On Fri, 26 Apr 2002, Marc G. Fournier wrote: > NOTE that I *do* think that #1 is what *should* happen, but there should > be some way of turning off that behaviour so that we don't screw up ppl > expecting "Oracles behaviour" ... I don't think this follows. If it's only for people's expectations

Re: [HACKERS] Block size: 8K or 16K?

2002-04-25 Thread Bruce Momjian
Curt Sampson wrote: > On Thu, 25 Apr 2002, mlw wrote: > > > ...but my gut tells me that using 16K blocks will increase performance > > over 8K. Aleady I have seen a sequential scan of a large table go from 20 > > seconds using 8K to 17.3 seconds using 16K. > > You should be able to get the same

Re: [HACKERS] Block size: 8K or 16K?

2002-04-25 Thread Curt Sampson
On Thu, 25 Apr 2002, mlw wrote: > ...but my gut tells me that using 16K blocks will increase performance > over 8K. Aleady I have seen a sequential scan of a large table go from 20 > seconds using 8K to 17.3 seconds using 16K. You should be able to get the same performance increase with 8K block

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Bruce Momjian
Marc G. Fournier wrote: > > Yes, let's find out what the others do. I don't see DROP TABLE > > rollbacking as totally different. How is it different from SET? > > SET currently has an "accepted behaviour" with other DBMSs, or, at least, > with Oracle, and that is to ignore the rollback ... > >

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Lincoln Yeoh
At 04:01 PM 4/25/02 -0300, Marc G. Fournier wrote: > > My guess is that we should implement #1 and see what feedback we get in > > 7.3. > >IMHO, it hasn't been thought out well enough to be implemented yet ... the >options have been, but which to implement haven't ... right now, #1 is >proposing t

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Marc G. Fournier
On Thu, 25 Apr 2002, Bruce Momjian wrote: > Marc G. Fournier wrote: > > On Thu, 25 Apr 2002, Bruce Momjian wrote: > > > > > > > > Marc is suggesting we may want to match Oracle somehow. > > > > > > I just want to have our SET work on a sane manner. > > > > Myself, I wonder why Oracle went the rou

Re: [HACKERS] Index Scans become Seq Scans after VACUUM ANALYSE

2002-04-25 Thread Curt Sampson
On Thu, 25 Apr 2002, Bruce Momjian wrote: > Actually, this brings up a different point. We use 8k blocks now > because at the time PostgreSQL was developed, it used BSD file systems, > and those prefer 8k blocks, and there was some concept that an 8k write > was atomic, though with 512 byte disk

Re: [HACKERS] Index Scans become Seq Scans after VACUUM ANALYSE

2002-04-25 Thread Curt Sampson
On Thu, 25 Apr 2002, Bruce Momjian wrote: > Also keep in mind most disks have 512 byte blocks, so even if the file > system is 8k, the disk block sizes are different. A given 8k or 1k file > system block may not even be all in the same cylinder. Right. Though much of the time they will be in th

Re: [HACKERS] What is wrong with hashed index usage?

2002-04-25 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > I hate to do that because it makes people think something special is > happening for hash, but it isn't. We could throw an elog(NOTICE) > stating that hash is not recommended and btree is faster, or something > like that. I think the only action called

[HACKERS] pg_constraint

2002-04-25 Thread Rod Taylor
For tracking of Foreign Keys, Check constraints, and maybe NULL / NOT NULL (specific type of check constraint) I intend to create (as per suggestion) pg_constraint. conrelid conname contype ('c'heck, 'f'oreign key, ???) conkey (int2vector of columns of relid, like pg_index.indkey) connum int4 --

Re: [HACKERS] Sequential Scan Read-Ahead

2002-04-25 Thread Curt Sampson
On Thu, 25 Apr 2002, Tom Lane wrote: > Curt Sampson <[EMAIL PROTECTED]> writes: > > 1. Theoretical proof: two components of the delay in retrieving a > > block from disk are the disk arm movement and the wait for the > > right block to rotate under the head. > > > When retrieving, say, eight adja

Re: [HACKERS] What is wrong with hashed index usage?

2002-04-25 Thread Bruce Momjian
Neil Conway wrote: > On Thu, 25 Apr 2002 16:38:00 -0400 (EDT) > "Bruce Momjian" <[EMAIL PROTECTED]> wrote: > > > > Nice report. I think we should start thinking of hiding the hash option > > from users, or warn them more forcefully, rather than hold it out as a > > possible option for them. > >

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Bruce Momjian
Vince Vielhaber wrote: > On Thu, 25 Apr 2002, Bruce Momjian wrote: > > > > > Marc is suggesting we may want to match Oracle somehow. > > > > I just want to have our SET work on a sane manner. > > As do I. But to Marc's suggestion, we discussed an oracle compatibility > factor in the past and it

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Bruce Momjian
Marc G. Fournier wrote: > On Thu, 25 Apr 2002, Bruce Momjian wrote: > > > > > Marc is suggesting we may want to match Oracle somehow. > > > > I just want to have our SET work on a sane manner. > > Myself, I wonder why Oracle went the route they went ... does anyone have > access to a Sybase / In

[HACKERS] 8K vs 16K block size report

2002-04-25 Thread mlw
I have been doing some benchmarking. The idea is to measure the difference between PostgreSQL 7.2.1 compiled for an 8K block or a 16K block. pgbench is almost useless for measuring changes in performance, I can't seem to get any real consistency, so I used the osdb to measure performance. In the

Re: [HACKERS] Sequential Scan Read-Ahead

2002-04-25 Thread Bruce Momjian
Nice test. Would you test simultaneous 'dd' on the same file, perhaps with a slight delay between to the two so they don't read each other's blocks? seek() in the file will turn off read-ahead in most OS's. I am not saying this is a major issue for PostgreSQL but the numbers would be interesti

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Marc G. Fournier
On Thu, 25 Apr 2002, Bruce Momjian wrote: > > Marc is suggesting we may want to match Oracle somehow. > > I just want to have our SET work on a sane manner. Myself, I wonder why Oracle went the route they went ... does anyone have access to a Sybase / Informix system, to confirm how they do it?

Re: [HACKERS] Sequential Scan Read-Ahead

2002-04-25 Thread Kyle
Tom Lane wrote: > ... > Curt Sampson <[EMAIL PROTECTED]> writes: > > 3. Proof by testing. I wrote a little ruby program to seek to a > > random point in the first 2 GB of my raw disk partition and read > > 1-8 8K blocks of data. (This was done as one I/O request.) (Using > > the raw disk partition

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Vince Vielhaber
On Thu, 25 Apr 2002, Bruce Momjian wrote: > > Marc is suggesting we may want to match Oracle somehow. > > I just want to have our SET work on a sane manner. As do I. But to Marc's suggestion, we discussed an oracle compatibility factor in the past and it was dismissed. I seem to recall someone

Re: [HACKERS] What is wrong with hashed index usage?

2002-04-25 Thread Michael Loftis
The idea behind hte bitmap (correct me if I'm wrong) is that when larger allocationsa re asked for they can be quickly found and there is no need to maintain the coalescing of smaller adjacent blocks into larger ones. I don't know if pg does this or not, but thats the only sane reason I can co

Re: [HACKERS] non-standard escapes in string literals

2002-04-25 Thread F Harvell
On Thu, 25 Apr 2002 15:07:44 EDT, Tom Lane wrote: > F Harvell <[EMAIL PROTECTED]> writes: > > This also poses the biggest problem in terms of legacy compatibility. > > Perhaps the answer is to add a runtime config option (and default it > > to ANSI) and possibly deprecate the C escaping. > > Whil

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Bruce Momjian
Marc is suggesting we may want to match Oracle somehow. I just want to have our SET work on a sane manner. --- Vince Vielhaber wrote: > On Thu, 25 Apr 2002, Bruce Momjian wrote: > > > Marc G. Fournier wrote: > > > > My gu

Re: [HACKERS] What is wrong with hashed index usage?

2002-04-25 Thread Tom Lane
Michael Loftis <[EMAIL PROTECTED]> writes: > I don't know about PGs implementation but since I assume oyu all > inhereted atleast part of it from the berkely boys you should be in very > solid form. One would have thought so, wouldn't one? AFAIK the hash index code is lock-stock-and-barrel st

Re: [HACKERS] What is wrong with hashed index usage?

2002-04-25 Thread Neil Conway
On Thu, 25 Apr 2002 16:38:00 -0400 (EDT) "Bruce Momjian" <[EMAIL PROTECTED]> wrote: > > Nice report. I think we should start thinking of hiding the hash option > from users, or warn them more forcefully, rather than hold it out as a > possible option for them. Why not do something Peter E. sugg

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Vince Vielhaber
On Thu, 25 Apr 2002, Bruce Momjian wrote: > Marc G. Fournier wrote: > > > My guess is that we should implement #1 and see what feedback we get in > > > 7.3. > > > > IMHO, it hasn't been thought out well enough to be implemented yet ... the > > options have been, but which to implement haven't ...

Re: [HACKERS] What is wrong with hashed index usage?

2002-04-25 Thread Bruce Momjian
Nice report. I think we should start thinking of hiding the hash option from users, or warn them more forcefully, rather than hold it out as a possible option for them. People think hash is best for equals-only queries, and btree for others, and we can now see this clearly isn't the case.

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Bruce Momjian
Marc G. Fournier wrote: > > My guess is that we should implement #1 and see what feedback we get in > > 7.3. > > IMHO, it hasn't been thought out well enough to be implemented yet ... the > options have been, but which to implement haven't ... right now, #1 is > proposing to implement something t

Re: [HACKERS] md5 passwords and pg_shadow

2002-04-25 Thread Bruce Momjian
Tom Lane wrote: > Neil Conway <[EMAIL PROTECTED]> writes: > > How many pre-7.2 clients are actually out there? If 'crypt' authentication > > is deprecated in 7.2, is there any chance it will be removed in > > 7.3? If it is, it should be safe to switch to the scheme I mentioned > > in my previous e

Re: [HACKERS] non-standard escapes in string literals

2002-04-25 Thread Bruce Momjian
Tom Lane wrote: > F Harvell <[EMAIL PROTECTED]> writes: > > This also poses the biggest problem in terms of legacy compatibility. > > Perhaps the answer is to add a runtime config option (and default it > > to ANSI) and possibly deprecate the C escaping. > > While I wouldn't necessarily object to

Re: [HACKERS] What is wrong with hashed index usage?

2002-04-25 Thread Michael Loftis
Tom Lane wrote: >Michael Loftis <[EMAIL PROTECTED]> writes: > >>[ on hash vs btree indexing ] >>Most of the time until the btree gets deep they are nearly equivalent. >>When the tree ends up becoming many levels deep it can take longer to >>walk than the hash. >> > >Maybe. I've just complete

Re: [HACKERS] What is wrong with hashed index usage?

2002-04-25 Thread Tom Lane
Michael Loftis <[EMAIL PROTECTED]> writes: > [ on hash vs btree indexing ] > Most of the time until the btree gets deep they are nearly equivalent. > When the tree ends up becoming many levels deep it can take longer to > walk than the hash. Maybe. I've just completed a simple benchmark of btr

Re: [HACKERS] non-standard escapes in string literals

2002-04-25 Thread Tom Lane
F Harvell <[EMAIL PROTECTED]> writes: > This also poses the biggest problem in terms of legacy compatibility. > Perhaps the answer is to add a runtime config option (and default it > to ANSI) and possibly deprecate the C escaping. While I wouldn't necessarily object to a runtime option, I do obje

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Marc G. Fournier
On Thu, 25 Apr 2002, Bruce Momjian wrote: > Marc G. Fournier wrote: > > Okay, based on this, I'm pseudo-against ... I think, for reasons of > > reducing headaches for ppl posting, there should be some sort of 'SET > > oracle_quirks' operation that would allow for those with largish legacy > > app

Re: [HACKERS] md5 passwords and pg_shadow

2002-04-25 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > How many pre-7.2 clients are actually out there? If 'crypt' authentication > is deprecated in 7.2, is there any chance it will be removed in > 7.3? If it is, it should be safe to switch to the scheme I mentioned > in my previous email, which is both less c

Re: [HACKERS] md5 passwords and pg_shadow

2002-04-25 Thread Bruce Momjian
Tom Lane wrote: > Neil Conway <[EMAIL PROTECTED]> writes: > > IMHO, there are two separate processes going on here: > > The connection you are missing is that hashed password storage is > incompatible with crypt-style password transmission. If we force > hashed storage then the only password tra

Re: [HACKERS] md5 passwords and pg_shadow

2002-04-25 Thread Neil Conway
On Thu, 25 Apr 2002 13:32:27 -0400 "Tom Lane" <[EMAIL PROTECTED]> wrote: > Neil Conway <[EMAIL PROTECTED]> writes: > > IMHO, there are two separate processes going on here: > > The connection you are missing is that hashed password storage is > incompatible with crypt-style password transmission.

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Bruce Momjian
Marc G. Fournier wrote: > Okay, based on this, I'm pseudo-against ... I think, for reasons of > reducing headaches for ppl posting, there should be some sort of 'SET > oracle_quirks' operation that would allow for those with largish legacy > apps trying to migrate over to do so without having to c

Re: [HACKERS] md5 passwords and pg_shadow

2002-04-25 Thread Bruce Momjian
OK, I remember now. 'Password' is fine for MD5-encrypted pg_shadow because you are using the password supplied over the wire to compare to the md5. (Of couse, no one should be using 'password'.) It is 'crypt' that is the problem. You get a random salted crypted password from the user, and you

Re: [HACKERS] Index Scans become Seq Scans after VACUUM ANALYSE

2002-04-25 Thread mlw
Bruce Momjian wrote: > Now, with larger RAM and disk sizes, it may be time to consider larger > page sizes, like 32k pages. That reduces the granularity of the cache, > but it may have other performance advantages that would be worth it. > > What people are actually suggesting with the read-ahea

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Marc G. Fournier
On Thu, 25 Apr 2002, Mike Mascari wrote: > Bruce Momjian wrote: > > > > Marc G. Fournier wrote: > > > > > > Just curious here, but has anyone taken the time to see how others are > > > doing this? For instance, if we go with 1, are going against how everyone > > > else handles it? IMHO, its not

Re: [HACKERS] md5 passwords and pg_shadow

2002-04-25 Thread Neil Conway
On Thu, 25 Apr 2002 01:50:32 -0400 (EDT) "Bruce Momjian" <[EMAIL PROTECTED]> wrote: > Neil Conway wrote: > > Hi all, > > > > Why does the password_encryption GUC variable default to false? > > > > AFAICT there shouldn't be any issues with client compatibility -- in > > fact, I'd be inclined to r

Re: [HACKERS] md5 passwords and pg_shadow

2002-04-25 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > IMHO, there are two separate processes going on here: The connection you are missing is that hashed password storage is incompatible with crypt-style password transmission. If we force hashed storage then the only password transmission style available to

Re: [HACKERS] non-standard escapes in string literals

2002-04-25 Thread F Harvell
On Thu, 25 Apr 2002 10:41:56 EDT, Bruce Momjian wrote: > Andrew Pimlott wrote: > > I posted this some time ago to pgsql-bugs[1], to no response. So > > I'll venture to try here. > > > > Postgres breaks the standard for string literals by supporting > > C-like escape sequences. This causes pain

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Mike Mascari
Bruce Momjian wrote: > > Marc G. Fournier wrote: > > > > Just curious here, but has anyone taken the time to see how others are > > doing this? For instance, if we go with 1, are going against how everyone > > else handles it? IMHO, its not a popularity contest ... > > Yes, good point. I don'

Re: [HACKERS] Sequential Scan Read-Ahead

2002-04-25 Thread Hannu Krosing
On Thu, 2002-04-25 at 12:47, Curt Sampson wrote: > On Thu, 25 Apr 2002, Lincoln Yeoh wrote: > > > I think the raw partitions will be more trouble than they are worth. > > Reading larger chunks at appropriate circumstances seems to be the "low > > hanging fruit". > > That's certainly a good start

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Bruce Momjian
Marc G. Fournier wrote: > > Just curious here, but has anyone taken the time to see how others are > doing this? For instance, if we go with 1, are going against how everyone > else handles it? IMHO, its not a popularity contest ... Yes, good point. I don't know that they use SET, but if they

Re: [HACKERS] Index Scans become Seq Scans after VACUUM ANALYSE

2002-04-25 Thread Bruce Momjian
Actually, this brings up a different point. We use 8k blocks now because at the time PostgreSQL was developed, it used BSD file systems, and those prefer 8k blocks, and there was some concept that an 8k write was atomic, though with 512 byte disk blocks, that was incorrect. (We knew that at the

Re: [HACKERS] Block size: 8K or 16K?

2002-04-25 Thread Neil Conway
On Thu, 25 Apr 2002 09:04:07 -0400 "mlw" <[EMAIL PROTECTED]> wrote: > I am going to compare a 16KB PostgreSQL system to an 8KB system. I am working > on the assumption that 16K takes about as long to read as 8K, and That the CPU > overhead of working with a 16K block is not too significant. > >

Re: [HACKERS] Index Scans become Seq Scans after VACUUM ANALYSE

2002-04-25 Thread Bruce Momjian
Michael Loftis wrote: > A Block-sized read will not be broken up. But if you're reading ina > size bigger than the underlying systems block sizes then it can get > broken up. > > So yes a sequential read will get broken up. A single read request for > a block may or may not get broken up.

Re: [HACKERS] Sequential Scan Read-Ahead

2002-04-25 Thread Bruce Momjian
Curt Sampson wrote: > 3. Proof by testing. I wrote a little ruby program to seek to a > random point in the first 2 GB of my raw disk partition and read > 1-8 8K blocks of data. (This was done as one I/O request.) (Using > the raw disk partition I avoid any filesystem buffering.) Here are > typica

Re: [HACKERS] non-standard escapes in string literals

2002-04-25 Thread Bruce Momjian
Andrew Pimlott wrote: > I posted this some time ago to pgsql-bugs[1], to no response. So > I'll venture to try here. > > Postgres breaks the standard for string literals by supporting > C-like escape sequences. This causes pain for people trying to > write portable applications. Is there any h

Re: [HACKERS] WAL -> Replication

2002-04-25 Thread Bruce Momjian
Mike Biamonte wrote: > > > Caveat: I'm not a pg hacker, I apologize > in advance if this is a dumb question, but > it has been nagging at me, and I don't > know who else to ask. > > If the WAL is a record of all transactions, > and if the checkpoint process can be managed > tightly, is it possi

Re: [HACKERS] new food for the contrib/ directory

2002-04-25 Thread Andreas Scherbaum
Hello, there's a new archive available with a bugfix for handling null values. Thanks to Steve Head for reporting this. http://ads.ufp.de/projects/Pg/ Regards -- Andreas 'ads' Scherbaum ---(end of broadcast)

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Jan Wieck
Sander Steffann wrote: > > What about a SET variable that controls the behaviour of > > SET variables :-) > > Or two commands for the same thing: > - a SET command that behaves as it does now > - a TSET command that is transaction-aware > > Ouch... :-) > Sander Naw, that's far too eas

Re: [HACKERS] Sequential Scan Read-Ahead

2002-04-25 Thread Tom Lane
Curt Sampson <[EMAIL PROTECTED]> writes: > 1. Theoretical proof: two components of the delay in retrieving a > block from disk are the disk arm movement and the wait for the > right block to rotate under the head. > When retrieving, say, eight adjacent blocks, these will be spread > across no mor

Re: [HACKERS] Block size: 8K or 16K?

2002-04-25 Thread mlw
Jean-Paul ARGUDO wrote: > > > I know with toast, block size is no longer an issue, but 8K is not a lot these > > days, and it seems like a lot of syscall and block management overhead could be > > reduced by doubling it. Any comments? > > IMHO, I think this would enhance performances only if tup

[HACKERS] non-standard escapes in string literals

2002-04-25 Thread Andrew Pimlott
I posted this some time ago to pgsql-bugs[1], to no response. So I'll venture to try here. Postgres breaks the standard for string literals by supporting C-like escape sequences. This causes pain for people trying to write portable applications. Is there any hope for an option to follow the st

[HACKERS] WAL -> Replication

2002-04-25 Thread Mike Biamonte
Caveat: I'm not a pg hacker, I apologize in advance if this is a dumb question, but it has been nagging at me, and I don't know who else to ask. If the WAL is a record of all transactions, and if the checkpoint process can be managed tightly, is it possible to copy the WAL files from a master D

[HACKERS] Block size: 8K or 16K?

2002-04-25 Thread mlw
I am going to compare a 16KB PostgreSQL system to an 8KB system. I am working on the assumption that 16K takes about as long to read as 8K, and That the CPU overhead of working with a 16K block is not too significant. I know with toast, block size is no longer an issue, but 8K is not a lot these

Re: [HACKERS] ECPG: FETCH ALL|n FROM cursor - Memory allocation?

2002-04-25 Thread Michael Meskes
On Thu, Apr 25, 2002 at 12:42:00PM +0100, Lee Kindness wrote: > Assuming the following fetch statement in embedded SQL/C: > > EXEC SQL FETCH ALL IN selectFromTable_cur INTO > :array1, > :array2; > > is memory automatically allocated (by experimentation I guess so)? Only if the poin

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Sander Steffann
> What about a SET variable that controls the behaviour of > SET variables :-) Or two commands for the same thing: - a SET command that behaves as it does now - a TSET command that is transaction-aware Ouch... :-) Sander ---(end of broadcast)---

Re: [HACKERS] Vote totals for SET in aborted transaction

2002-04-25 Thread Marc G. Fournier
Just curious here, but has anyone taken the time to see how others are doing this? For instance, if we go with 1, are going against how everyone else handles it? IMHO, its not a popularity contest ... Personally, I do agree with #1, but I'm curious as to how those coming from other DBMS are go

[HACKERS] ECPG: FETCH ALL|n FROM cursor - Memory allocation?

2002-04-25 Thread Lee Kindness
Assuming the following fetch statement in embedded SQL/C: EXEC SQL FETCH ALL IN selectFromTable_cur INTO :array1, :array2; is memory automatically allocated (by experimentation I guess so)? Should the input pointers be NULL initialised? How should the memory be freed? Assuming

Re: [HACKERS] Sequential Scan Read-Ahead

2002-04-25 Thread Curt Sampson
On Thu, 25 Apr 2002, Lincoln Yeoh wrote: > I think the raw partitions will be more trouble than they are worth. > Reading larger chunks at appropriate circumstances seems to be the "low > hanging fruit". That's certainly a good start. I don't know if the raw partitions would be more trouble than

Re: [HACKERS] Sequential Scan Read-Ahead

2002-04-25 Thread Curt Sampson
On Thu, 25 Apr 2002, Curt Sampson wrote: > Here's the ratio table again, with another column comparing the > aggregate number of requests per second for one process and four > processes: > Just for interest, I ran this again with 20 processes working simultaneously. I did six runs at each blockr

Re: [HACKERS] Sequential Scan Read-Ahead

2002-04-25 Thread Lincoln Yeoh
At 12:19 PM 4/25/02 +0900, Curt Sampson wrote: >Grabbing bigger chunks is always optimal, AFICT, if they're not >*too* big and you use the data. A single 64K read takes very little >longer than a single 8K read. Yes I agree that if sequential scans are done reading ahead helps. And often doesn't

Re: [HACKERS] Sequential Scan Read-Ahead

2002-04-25 Thread Curt Sampson
On Thu, 25 Apr 2002, Bruce Momjian wrote: > Well, we are guilty of trying to push as much as possible on to other > software. We do this for portability reasons, and because we think our > time is best spent dealing with db issues, not issues then can be deal > with by other existing software, a

Re: [HACKERS] Sequential Scan Read-Ahead

2002-04-25 Thread Curt Sampson
On Wed, 24 Apr 2002, Tom Lane wrote: > Curt Sampson <[EMAIL PROTECTED]> writes: > > Grabbing bigger chunks is always optimal, AFICT, if they're not > > *too* big and you use the data. A single 64K read takes very little > > longer than a single 8K read. > > Proof? Well, there are various sorts o