Re: [PERFORM] 2GB or not 2GB

2008-05-28 Thread Jignesh K. Shah
Greg Smith wrote: On Wed, 28 May 2008, Josh Berkus wrote: shared_buffers: according to witnesses, Greg Smith presented at East that based on PostgreSQL's buffer algorithms, buffers above 2GB would not really receive significant use. However, Jignesh Shah has tested that on workloads with

Re: [PERFORM] 2GB or not 2GB

2008-05-28 Thread Jignesh K. Shah
Josh Berkus wrote: Folks, Subsequent to my presentation of the new annotated.conf at pgCon last week, there's been some argument about the utility of certain memory settings above 2GB. I'd like to hash those out on this list so that we can make some concrete recomendations to users. shar

Re: [PERFORM] 2GB or not 2GB

2008-05-28 Thread Greg Smith
On Wed, 28 May 2008, Josh Berkus wrote: shared_buffers: according to witnesses, Greg Smith presented at East that based on PostgreSQL's buffer algorithms, buffers above 2GB would not really receive significant use. However, Jignesh Shah has tested that on workloads with large numbers of connec

Re: [PERFORM] 2GB or not 2GB

2008-05-28 Thread Gregory Stark
"Josh Berkus" <[EMAIL PROTECTED]> writes: > sort_mem: My tests with 8.2 and DBT3 seemed to show that, due to > limitations of our tape sort algorithm, allocating over 2GB for a single > sort had no benefit. However, Magnus and others have claimed otherwise. > Has this improved in 8.3? Simon

Re: [PERFORM] 2GB or not 2GB

2008-05-28 Thread Steve Crawford
Josh Berkus wrote: Folks, Subsequent to my presentation of the new annotated.conf at pgCon last week,... Available online yet? At?... Cheers, Steve -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/m

[PERFORM] 2GB or not 2GB

2008-05-28 Thread Josh Berkus
Folks, Subsequent to my presentation of the new annotated.conf at pgCon last week, there's been some argument about the utility of certain memory settings above 2GB. I'd like to hash those out on this list so that we can make some concrete recomendations to users. shared_buffers: according t

Re: [PERFORM] Creating large database of MD5 hash values

2008-05-28 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Decibel! wrote: >> If you do this *please* post it. I really think it would be worth >> while for us to have fixed-size data types for common forms of binary >> data; MD5, SHA1 and SHA256 come to mind. > Why do you think it would be worth while? Giv

Re: [PERFORM] Creating large database of MD5 hash values

2008-05-28 Thread Bruce Momjian
Decibel! wrote: > On Apr 11, 2008, at 10:25 AM, Alvaro Herrera wrote: > > Sorry, yes, I'm behind on email... :( > > > If MD5 values will be your primary data and you'll be storing millions > > of them, it would be wise to create your own datatype and operators > > with > > the most compact and

Re: [PERFORM] GEQO Benchmark

2008-05-28 Thread Tarcizio Bini
I'm interested in the response time instead of the quality of it, that is, if this response is (or not) a best plan. Thus, my interest on the response time is to compare the GEQO algorithm with other solutions for optimization of queries, more specificaly when there are 12 or more tables evolved. A

Re: [PERFORM] GEQO Benchmark

2008-05-28 Thread Simon Riggs
On Wed, 2008-05-28 at 13:13 -0300, Tarcizio Bini wrote: > Of course, the geqo_threshold can be changed so that the geqo be > performed in queries that have less than 12 tables. However, we aim to > test the GEQO algorithm in conditions where the standard algorithm > (dynamic programming) has a hi

Re: [PERFORM] GEQO Benchmark

2008-05-28 Thread Tarcizio Bini
Hi, Of course, the geqo_threshold can be changed so that the geqo be performed in queries that have less than 12 tables. However, we aim to test the GEQO algorithm in conditions where the standard algorithm (dynamic programming) has a high cost to calculate the query plan. -- Tarcizio Bini 2008

Re: [PERFORM] GEQO Benchmark

2008-05-28 Thread Tom Lane
[EMAIL PROTECTED] writes: > I'm using the TPC-H Benchmark for testing of performance in PostgreSQL. > But it is composed of only 8 tables, which is not enough to call the GEQO > algorithm. See http://www.postgresql.org/docs/8.3/static/runtime-config-query.html#RUNTIME-CONFIG-QUERY-GEQO particular

[PERFORM] GEQO Benchmark

2008-05-28 Thread tarcizioab
Hi all, I'm using the TPC-H Benchmark for testing of performance in PostgreSQL. But it is composed of only 8 tables, which is not enough to call the GEQO algorithm. I don't want to change any of the 22 queries provided by the TPC-H to call the GEQO, and not lose the credibility of the TPC's tool.

Re: [PERFORM] Outer joins and equivalence

2008-05-28 Thread Simon Riggs
On Wed, 2008-05-28 at 11:45 +0100, Matthew Wakeling wrote: > On Tue, 27 May 2008, Simon Riggs wrote: > > I do recognise that we would *not* be able to deduce this form of SQL > > > > A JOIN B ON (a.id = c.id) LEFT JOIN C ON (b.id = c.id) > > Surely that would not be valid SQL? You are right, but

Re: [PERFORM] Outer joins and equivalence

2008-05-28 Thread Matthew Wakeling
On Tue, 27 May 2008, Simon Riggs wrote: I do recognise that we would *not* be able to deduce this form of SQL A JOIN B ON (a.id = c.id) LEFT JOIN C ON (b.id = c.id) Surely that would not be valid SQL? Matthew -- Psychotics are consistently inconsistent. The essence of sanity is to be inconsi