Re: [PERFORM] Cursors and different settings for default_statistics_target

2008-04-02 Thread Hell, Robert
I'm motivated to contribute a patch for that. I would prefer to make tuple_fraction for cursors configurable as GUC parameter cursor_tuple_fraction. Do you agree with that? Regards, Robert -Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 02. April 2008 00:24 T

Re: [PERFORM] POSIX file updates

2008-04-02 Thread James Mansion
Greg Smith wrote: "After a write() to a regular file has successfully returned, any successful read() from each byte position in the file that was modified by that write() will return the data that was written by the write()...a similar requirement applies to multiple write operations to the s

Re: [PERFORM] Performance Implications of Using Exceptions

2008-04-02 Thread James Mansion
Stephen Denne wrote: A third option is to update, if not found, insert. I find myself having to do this in Sybase, but it sucks because there's a race - if there's no row updated then there's no lock and you race another thread doing the same thing. So you grab a row lock on a sacrificial ro

Re: [PERFORM] POSIX file updates

2008-04-02 Thread Andreas Kostyrka
Am Mittwoch, den 02.04.2008, 20:10 +0100 schrieb James Mansion: > It strikes me as odd that fsync_writethrough isn't the most preferred > option where > it is implemented. The postgres approach of *requiring* that there be no > cache > below the OS is problematic, especially since the battery ba

Re: [PERFORM] POSIX file updates

2008-04-02 Thread James Mansion
Andreas Kostyrka wrote: takes over. The thing you worry about is if all data has made it to the replication servers, not if some data might get lost in the hardware cache of a controller. (Actually, talk to your local computer forensics guru, there are a number of way to keep the current to elect

Re: [PERFORM] POSIX file updates

2008-04-02 Thread Greg Smith
On Wed, 2 Apr 2008, James Mansion wrote: But amusingly, PostgreSQL doesn't even support Solaris's direct I/O method right now unless you override the filesystem mounting options, so you end up needing to split it out and hack at that level regardless. Indeed that's a shame. Why doesn't it use

Re: [PERFORM] POSIX file updates

2008-04-02 Thread Greg Smith
On Wed, 2 Apr 2008, James Mansion wrote: I'm well aware that there are battery-backed caches that can be detached from controllers and moved. But you'd better make darn sure you move all the drives and plug them in in exactly the right order and make sure they all spin up OK with the replaced

Re: [PERFORM] SSDs

2008-04-02 Thread Merlin Moncure
On Wed, Apr 2, 2008 at 1:16 AM, James Mansion <[EMAIL PROTECTED]> wrote: > Tried harder to find info on the write cycles: found som CFs that claim > 2million > cycles, and found the Mtron SSDs which claim to have very advanced wear > levelling and a suitably long lifetime as a result even with a

[PERFORM] Max shared_buffers

2008-04-02 Thread bitaoxiao
What can be set as max of postgreSQL shared_buffers and work_mem 2008-04-03 bitaoxiao

Re: [PERFORM] POSIX file updates

2008-04-02 Thread James Mansion
Greg Smith wrote: You turn on direct I/O differently under Solaris then everywhere else, and nobody has bothered to write the patch (trivial) and OS-specific code to turn it on only when appropriate (slightly tricker) to handle this case. There's not a lot of pressure on PostgreSQL to handle th