Re: [HACKERS] Selecting a constant question

2007-06-11 Thread Dann Corbit
-Original Message- From: Hannu Krosing [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 10:43 PM To: Larry McGhaw Cc: Tom Lane; Alvaro Herrera; Dann Corbit; Gregory Stark; Martijn van Oosterhout; pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Selecting a constant question

Re: [HACKERS] Issues with factorial operator

2007-06-09 Thread Dann Corbit
-Original Message- From: Cui Shijun [mailto:[EMAIL PROTECTED] Sent: Friday, June 08, 2007 11:11 PM To: Dann Corbit Cc: Jim C. Nasby; pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Issues with factorial operator Hi, 2007/6/9, Dann Corbit [EMAIL PROTECTED]: It makes sense

Re: [HACKERS] Issues with factorial operator

2007-06-09 Thread Dann Corbit
-Original Message- [snip] Hum... I think there is a little improvement: when n is too large,(say n10, 000) we can use Stirling's formula to get the estimated value of n!:-) Or (rather) the log base 10 of Stirling's formula. The n! estimator will overflow for sure, unless we take

[HACKERS] Binary mode copy in from stdin

2007-06-08 Thread Dann Corbit
We have (among other things) and ODBC/OLEDB/JDBC/.NET driver for PostgreSQL and we want to optimize fast mode insert/select behavior. When we try to do a binary mode copy from standard input, we get an error message that we can't do it. How can we programmatically insert data using COPY

Re: [HACKERS] Issues with factorial operator

2007-06-08 Thread Dann Corbit
It makes sense with factorial function to do an error check on the domain. Calculate beforehand, and figure out what the largest sensible domain value is. For instance, in Maple, I get this: y:=92838278!; Error, object too large The error message returns instantly. For reasonably large

Re: [HACKERS] Autovacuum launcher doesn't notice death of postmaster immediately

2007-06-08 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Joshua D. Drake Sent: Friday, June 08, 2007 10:49 PM To: Alvaro Herrera Cc: Matthew T. O'Connor; Jim C. Nasby; Michael Paesold; Tom Lane; Andrew Hammond; Peter Eisentraut;

[HACKERS] pqlib suggestion

2007-06-07 Thread Dann Corbit
Clients using pqlib can get some boost by increasing tcp/ip window size. It might be good to make it a settable parameter. Anyway, maybe something like this: /* -- * connectNoDelay - * Sets the TCP_NODELAY socket option. * Returns 1 if successful, 0 if not. * -- */

Re: [HACKERS] Planning large IN lists

2007-05-10 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Tom Lane Sent: Thursday, May 10, 2007 11:53 AM To: Neil Conway Cc: pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Planning large IN lists Neil Conway [EMAIL PROTECTED] writes:

Re: [HACKERS] choose_bitmap_and again (was Re: [PERFORM] Strangely Variable Query Performance)

2007-04-14 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Alvaro Herrera Sent: Friday, April 13, 2007 4:24 PM To: Tom Lane Cc: [EMAIL PROTECTED]; PostgreSQL Performance; Steve Subject: Re: [HACKERS] choose_bitmap_and again (was Re: [PERFORM]

Re: [HACKERS] [GENERAL] more anti-postgresql FUD

2006-10-13 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-general- [EMAIL PROTECTED] On Behalf Of Thomas Kellerer Sent: Friday, October 13, 2006 2:11 PM To: pgsql-general@postgresql.org Subject: Re: [GENERAL] more anti-postgresql FUD [EMAIL PROTECTED] wrote on 11.10.2006 16:54:

Re: [HACKERS] Hash indexes

2006-08-01 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Greg Stark Sent: Tuesday, August 01, 2006 4:42 PM To: Hannu Krosing Cc: Andrew Dunstan; Gregory Stark; Tom Lane; Alvaro Herrera; Jim C. Nasby; Luke Lonergan; [EMAIL PROTECTED]; Bruce

Re: [HACKERS] On-disk bitmap index patch

2006-07-28 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Luke Lonergan Sent: Friday, July 28, 2006 12:18 PM To: Jim C. Nasby; Jie Zhang Cc: Tom Lane; Mark Kirkwood; Josh Berkus; Gavin Sherry; pgsql- [EMAIL PROTECTED] Subject: Re: [HACKERS]

Re: [HACKERS] qsort, once again

2006-03-16 Thread Dann Corbit
I sent him a copy From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jonah H. Harris Sent: Thursday, March 16, 2006 11:43 AM To: Tom Lane Cc: pgsql-hackers@postgresql.org; Jerry Sievers Subject: Re: [HACKERS] qsort, once again On 3/16/06, Tom Lane [EMAIL

Re: [HACKERS] qsort, once again

2006-03-16 Thread Dann Corbit
. Small number of distinct values Then it will cause problems in real-life use. -Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Thursday, March 16, 2006 12:09 PM To: Dann Corbit Cc: Jonah H. Harris; pgsql-hackers@postgresql.org; Jerry Sievers Subject: Re: [HACKERS

Re: [HACKERS] qsort, once again

2006-03-16 Thread Dann Corbit
[snip] So at least on randomized data, the swap_cnt thing is a serious loser. Need to run some tests on special-case inputs though. Anyone have a test suite they like? regards, tom lane Here is a distribution maker that will create some torture tests for sorting

Re: [HACKERS] qsort, once again

2006-03-16 Thread Dann Corbit
Actually, if you compile with CREATE_DISTRIBS defined, it does define a main() function and create sample distributions. -Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Dann Corbit Sent: Thursday, March 16, 2006 1:28 PM To: Tom Lane

Re: [HACKERS] qsort, once again

2006-03-16 Thread Dann Corbit
-Original Message- From: Dann Corbit Sent: Thursday, March 16, 2006 1:31 PM To: Dann Corbit; Tom Lane; Jonah H. Harris Cc: pgsql-hackers@postgresql.org; Jerry Sievers Subject: RE: [HACKERS] qsort, once again Actually, if you compile with CREATE_DISTRIBS defined, it does define a main() function

Re: [HACKERS] qsort, once again

2006-03-16 Thread Dann Corbit
So my feeling is we should just remove the swap_cnt code and return to the original BM algorithm. Being much faster than expected for presorted input doesn't justify being far slower than expected for other inputs, IMHO. In the context of Postgres I doubt that perfectly sorted input shows

Re: [HACKERS] qsort, once again

2006-03-16 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Dann Corbit Sent: Thursday, March 16, 2006 4:42 PM To: Tom Lane Cc: Jonah H. Harris; pgsql-hackers@postgresql.org; Jerry Sievers Subject: Re: [HACKERS] qsort, once again So my

Re: [HACKERS] qsort, once again

2006-03-16 Thread Dann Corbit
Well, my point was that it is a snap to implement and test. It will be better, worse, or the same. I agree that Bentley is a bloody genius. -Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Thursday, March 16, 2006 9:27 PM To: Dann Corbit Cc: Jonah H. Harris; pgsql

Re: [HACKERS] Merge algorithms for large numbers of tapes

2006-03-09 Thread Dann Corbit
-Original Message- From: Stephen Frost [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 3:49 PM To: Tom Lane Cc: Luke Lonergan; Jim C. Nasby; Greg Stark; Dann Corbit; Simon Riggs; pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Merge algorithms for large numbers of tapes

Re: [HACKERS] Merge algorithms for large numbers of tapes

2006-03-08 Thread Dann Corbit
I do not clearly understand the sorting code in PostgreSQL. If I did have a good grasp of it, I would take a go at improving it. Here are some suggestions of things that I know work really, really well: #1. Two pass merge (none of that silly poly-tape merge goo) #2. Load ONLY the keys that

Re: [HACKERS] Merge algorithms for large numbers of tapes

2006-03-08 Thread Dann Corbit
-Original Message- From: Luke Lonergan [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 1:52 PM To: Dann Corbit; Tom Lane; Jim C. Nasby Cc: Simon Riggs; pgsql-hackers@postgreSQL.org Subject: Re: [HACKERS] Merge algorithms for large numbers of tapes Dann, On 3/8/06 12

Re: [HACKERS] Merge algorithms for large numbers of tapes

2006-03-08 Thread Dann Corbit
There are some articles here that are worth reading if you want to sort fast: http://research.microsoft.com/barc/SortBenchmark/ -Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Dann Corbit Sent: Wednesday, March 08, 2006 1:59 PM

Re: [HACKERS] Merge algorithms for large numbers of tapes

2006-03-08 Thread Dann Corbit
-Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 3:17 PM To: Dann Corbit Cc: Jim C. Nasby; Luke Lonergan; Simon Riggs; pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Merge algorithms for large numbers of tapes Dann Corbit [EMAIL

Re: [HACKERS] Merge algorithms for large numbers of tapes

2006-03-08 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 3:56 PM To: Luke Lonergan Cc: Dann Corbit; Tom Lane; Jim C. Nasby; Simon Riggs; pgsql- [EMAIL PROTECTED] Subject: Re: [HACKERS] Merge algorithms for large numbers of tapes Luke

Re: [HACKERS] Merge algorithms for large numbers of tapes

2006-03-08 Thread Dann Corbit
-Original Message- From: Jim C. Nasby [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 5:44 PM To: Dann Corbit Cc: Tom Lane; Luke Lonergan; Simon Riggs; pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Merge algorithms for large numbers of tapes On Wed, Mar 08, 2006

Re: [HACKERS] Merge algorithms for large numbers of tapes

2006-03-07 Thread Dann Corbit
Use a priority queue for the sorted sub-lists. When the key-object extracted from the head of the smallest queue exceeds the key-object from the head of the second queue, adjust the priority of the smallest queue within the list of queues. It uses a total of 2 read/write passes over the

Re: [HACKERS] qsort again (was Re: [PERFORM] Strange Create Index

2006-02-16 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Markus Schaber Sent: Thursday, February 16, 2006 5:45 AM To: pgsql-performance@postgresql.org; pgsql-hackers@postgresql.org Subject: Re: [HACKERS] qsort again (was Re: [PERFORM] Strange

Re: [HACKERS] qsort again (was Re: [PERFORM] Strange Create Index behaviour)

2006-02-15 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Tom Lane Sent: Wednesday, February 15, 2006 5:22 PM To: Ron Cc: pgsql-performance@postgresql.org; pgsql-hackers@postgresql.org Subject: Re: [HACKERS] qsort again (was Re: [PERFORM]

Re: [HACKERS] Surrogate keys (Was: enums)

2006-01-19 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Josh Berkus Sent: Thursday, January 19, 2006 10:09 AM To: Martijn van Oosterhout Cc: pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Surrogate keys (Was: enums) Martjin, In

Re: [HACKERS] Surrogate keys (Was: enums)

2006-01-18 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Josh Berkus Sent: Wednesday, January 18, 2006 3:59 PM To: pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Surrogate keys (Was: enums) Martjin, Interesting. However, in my

Re: [HACKERS] Surrogate keys (Was: enums)

2006-01-18 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Dann Corbit Sent: Wednesday, January 18, 2006 4:04 PM To: josh@agliodbs.com; pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Surrogate keys (Was: enums) -Original Message

Re: FW: [HACKERS] Surrogate keys (Was: enums)

2006-01-18 Thread Dann Corbit
Maybe it goes better into Advocacy or something, but I have found a quote by database big-wigs that I strongly disagree with: From: http://www.db.ucsd.edu/cse132B/Thirdmanifesto.pdf We have this. PROPOSITION 1.4: Unique Identifiers (UIDs) for records should be assigned by the DBMS only if a

Re: [HACKERS] Surrogate keys (Was: enums)

2006-01-18 Thread Dann Corbit
-Original Message- From: Michael Glaesemann [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 18, 2006 5:48 PM To: Dann Corbit Cc: Leandro GuimarĂ£es Faria Corcete Dutra; Jim C. Nasby; pgsql- [EMAIL PROTECTED] Subject: Re: [HACKERS] Surrogate keys (Was: enums) On Jan 19, 2006

Re: [HACKERS] Re: Which qsort is used

2005-12-22 Thread Dann Corbit
: Tom Lane; Dann Corbit; Qingqing Zhou; Bruce Momjian; Luke Lonergan; Neil Conway; pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Re: Which qsort is used On Thu, 22 Dec 2005 08:01:00 +0100, Martijn van Oosterhout kleptog@svana.org wrote: But where are you including the cost to check how

Re: [HACKERS] Which qsort is used

2005-12-16 Thread Dann Corbit
-Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Thursday, December 15, 2005 6:24 PM To: Dann Corbit Cc: Qingqing Zhou; Greg Stark; Jim C. Nasby; Luke Lonergan; Neil Conway; Bruce Momjian; pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Which qsort is used

Re: [HACKERS] Re: Which qsort is used

2005-12-16 Thread Dann Corbit
is used On Fri, 16 Dec 2005, Bruce Momjian wrote: At this point, I think we have done enough testing on enough platforms to just use port/qsort on all platforms in 8.2. It seems whenever someone tries to improve the BSD qsort, they make it worse. Not necessariliy true. Dann Corbit

Re: [HACKERS] Re: Which qsort is used

2005-12-16 Thread Dann Corbit
-Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Friday, December 16, 2005 9:03 PM To: Dann Corbit Cc: Qingqing Zhou; Bruce Momjian; Luke Lonergan; Neil Conway; pgsql- [EMAIL PROTECTED] Subject: Re: [HACKERS] Re: Which qsort is used Dann Corbit [EMAIL PROTECTED

Re: [HACKERS] Re: Which qsort is used

2005-12-16 Thread Dann Corbit
-Original Message- From: Qingqing Zhou [mailto:[EMAIL PROTECTED] Sent: Friday, December 16, 2005 10:13 PM To: Dann Corbit Cc: Tom Lane; Bruce Momjian; Luke Lonergan; Neil Conway; pgsql- [EMAIL PROTECTED] Subject: RE: [HACKERS] Re: Which qsort is used On Sat, 17 Dec 2005, Dann

Re: [HACKERS] Re: Which qsort is used

2005-12-16 Thread Dann Corbit
-Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Friday, December 16, 2005 10:41 PM To: Dann Corbit Cc: Qingqing Zhou; Bruce Momjian; Luke Lonergan; Neil Conway; pgsql- [EMAIL PROTECTED] Subject: Re: [HACKERS] Re: Which qsort is used Dann Corbit [EMAIL PROTECTED

Re: [HACKERS] Which qsort is used

2005-12-15 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Qingqing Zhou Sent: Thursday, December 15, 2005 3:16 PM To: Greg Stark Cc: Jim C. Nasby; Luke Lonergan; Tom Lane; Neil Conway; Bruce Momjian; pgsql-hackers@postgresql.org Subject: Re:

Re: [HACKERS] Which qsort is used

2005-12-13 Thread Dann Corbit
Here is a sort template (that can very easily be turned into a C routine). It is an introspective sort. Bentley McIlroy proved that every qsort routine will degrade into quadratic behavior with a worst-case input. This function detects quadratic behavior and switches to qsort when needed. Use

Re: [HACKERS] Which qsort is used

2005-12-13 Thread Dann Corbit
Strike switches to qsort insert switches to heapsort -Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Dann Corbit Sent: Tuesday, December 13, 2005 10:40 AM To: Qingqing Zhou; Luke Lonergan Cc: Tom Lane; Neil Conway; Bruce Momjian

Re: [HACKERS] Which qsort is used

2005-12-13 Thread Dann Corbit
The test is O(n) -Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 10:51 AM To: Dann Corbit Cc: Qingqing Zhou; Luke Lonergan; Neil Conway; Bruce Momjian; pgsql- [EMAIL PROTECTED] Subject: Re: [HACKERS] Which qsort is used Dann Corbit

Re: [HACKERS] Which qsort is used

2005-12-13 Thread Dann Corbit
quadratic (without a test). Of course, introspective sort does not suffer from this defect, even with the test removed. -Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Dann Corbit Sent: Tuesday, December 13, 2005 11:53 AM To: Tom Lane Cc

Re: [HACKERS] Which qsort is used

2005-12-13 Thread Dann Corbit
I will send you an ANSI C version. -Original Message- From: Qingqing Zhou [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 1:08 PM To: Dann Corbit Cc: Tom Lane; Luke Lonergan; Neil Conway; Bruce Momjian; pgsql- [EMAIL PROTECTED] Subject: RE: [HACKERS] Which qsort is used

Re: [HACKERS] Which qsort is used

2005-12-13 Thread Dann Corbit
-Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 7:38 PM To: Dann Corbit Cc: Qingqing Zhou; Luke Lonergan; Neil Conway; Bruce Momjian; pgsql- [EMAIL PROTECTED] Subject: Re: [HACKERS] Which qsort is used Dann Corbit [EMAIL PROTECTED

Re: [HACKERS] HOOKS for Synchronous Replication?

2005-12-08 Thread Dann Corbit
A general purpose log miner is also useful in many other areas besides replication. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jonah H. Harris Sent: Thursday, December 08, 2005 11:32 AM To: Jim C. Nasby Cc: Darcy Buskermolen; pgsql-hackers@postgresql.org;

Re: [HACKERS] Improving count(*)

2005-11-17 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Tom Lane Sent: Thursday, November 17, 2005 4:17 PM To: Simon Riggs Cc: Kevin Grittner; pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Improving count(*) Simon Riggs [EMAIL

Re: [HACKERS] MERGE vs REPLACE

2005-11-16 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Simon Riggs Sent: Wednesday, November 16, 2005 10:35 AM To: Martijn van Oosterhout Cc: Bruce Momjian; Rick Gigger; Tom Lane; Christopher Kings-Lynne; Jim C. Nasby; josh@agliodbs.com;

Re: [HACKERS] [PERFORM] insert performance for win32

2005-11-04 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Magnus Hagander Sent: Friday, November 04, 2005 10:31 AM To: Tom Lane; Merlin Moncure Cc: pgsql-hackers@postgresql.org; pgsql-performance@postgresql.org Subject: Re: [HACKERS] [PERFORM]

Re: [GENERAL] [HACKERS] 'a' == 'a '

2005-10-24 Thread Dann Corbit
Document the collating sequences used for the character types. -Original Message- From: Bruce Momjian [mailto:[EMAIL PROTECTED] Sent: Monday, October 24, 2005 11:01 AM To: Tom Lane Cc: Dann Corbit; [EMAIL PROTECTED]; [EMAIL PROTECTED]; pgsql-hackers@postgresql.org Subject: Re

Re: [GENERAL] [HACKERS] 'a' == 'a '

2005-10-24 Thread Dann Corbit
-Original Message- From: Bruce Momjian [mailto:[EMAIL PROTECTED] Sent: Monday, October 24, 2005 5:57 PM To: Dann Corbit Cc: Tom Lane; [EMAIL PROTECTED]; [EMAIL PROTECTED]; pgsql-hackers@postgresql.org Subject: Re: [GENERAL] [HACKERS] 'a' == 'a ' Dann Corbit wrote: Document

Re: [GENERAL] [HACKERS] 'a' == 'a '

2005-10-20 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Greg Stark Sent: Wednesday, October 19, 2005 11:17 PM To: Tom Lane Cc: Chris Travers; josh@agliodbs.com; pgsql-hackers@postgresql.org; Dann Corbit; Stephan Szabo; Terry Fielder; Tino

Re: [GENERAL] [HACKERS] 'a' == 'a '

2005-10-20 Thread Dann Corbit
-Original Message- From: Chris Travers [mailto:[EMAIL PROTECTED] Sent: Thursday, October 20, 2005 11:53 AM To: Dann Corbit Cc: Greg Stark; Tom Lane; Chris Travers; josh@agliodbs.com; pgsql- [EMAIL PROTECTED]; Stephan Szabo; Terry Fielder; Tino Wildenhain; Marc G. Fournier; [EMAIL

Re: [GENERAL] [HACKERS] 'a' == 'a '

2005-10-20 Thread Dann Corbit
, 2005 12:53 PM To: Dann Corbit Cc: pgsql-hackers@postgresql.org; pgsql-general General Subject: Re: [GENERAL] [HACKERS] 'a' == 'a ' [Removed all the non-list addresses] Dann Corbit wrote: Let me make something clear: When we are talking about padding here it is only in the context

Re: [GENERAL] [HACKERS] 'a' == 'a '

2005-10-20 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 20, 2005 2:12 PM To: Tom Lane Cc: Chris Travers; Dann Corbit; Greg Stark; josh@agliodbs.com; pgsql- [EMAIL PROTECTED]; pgsql-hackers@postgresql.org; Marc G. Fournier; Stephan Szabo; Terry

Re: [GENERAL] [HACKERS] 'a' == 'a '

2005-10-20 Thread Dann Corbit
-Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Thursday, October 20, 2005 2:54 PM To: Dann Corbit Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; pgsql- [EMAIL PROTECTED] Subject: Re: [GENERAL] [HACKERS] 'a' == 'a ' Dann Corbit [EMAIL PROTECTED] writes: I guess

Re: [HACKERS] [pgsql-advocacy] [GENERAL] Oracle buys Innobase

2005-10-19 Thread Dann Corbit
a space. Is that the case for PostgreSQL? Even if it is, is seems truly bizarre that the NO PAD attribute would be applied to string constants. -Original Message- From: Marc G. Fournier [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 19, 2005 12:53 PM To: Dann Corbit Cc: Stephan Szabo

Re: [HACKERS] 'a' == 'a ' (Was: RE: [pgsql-advocacy] [GENERAL] Oracle buysInnobase)

2005-10-19 Thread Dann Corbit
of it. -Original Message- From: Tino Wildenhain [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 19, 2005 1:05 PM To: Marc G. Fournier Cc: Dann Corbit; [EMAIL PROTECTED]; pgsql- [EMAIL PROTECTED]; pgsql-general@postgresql.org Subject: Re: 'a' == 'a ' (Was: RE: [pgsql-advocacy] [GENERAL

Re: [HACKERS] 'a' == 'a ' (Was: RE: [pgsql-advocacy] [GENERAL] Oracle buysInnobase)

2005-10-19 Thread Dann Corbit
-Original Message- From: Terry Fielder [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 19, 2005 2:05 PM To: Dann Corbit Cc: Tino Wildenhain; Marc G. Fournier; [EMAIL PROTECTED]; pgsql-hackers@postgresql.org; pgsql-general@postgresql.org Subject: Re: 'a' == 'a ' (Was: RE: [pgsql

Re: [HACKERS] 'a' == 'a ' (Was: RE: [pgsql-advocacy] [GENERAL] Oracle buysInnobase)

2005-10-19 Thread Dann Corbit
-Original Message- From: Stephan Szabo [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 19, 2005 2:34 PM To: Dann Corbit Cc: Terry Fielder; Tino Wildenhain; Marc G. Fournier; [EMAIL PROTECTED]; pgsql-hackers@postgresql.org; pgsql- [EMAIL PROTECTED] Subject: Re: [HACKERS

Re: [HACKERS] 'a' == 'a ' (Was: RE: [pgsql-advocacy] [GENERAL] Oracle buysInnobase)

2005-10-19 Thread Dann Corbit
-Original Message- From: Martijn van Oosterhout [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 19, 2005 2:46 PM To: Dann Corbit Cc: Terry Fielder; Tino Wildenhain; Marc G. Fournier; [EMAIL PROTECTED]; pgsql-hackers@postgresql.org; pgsql- [EMAIL PROTECTED] Subject: Re

Re: [HACKERS] 'a' == 'a '

2005-10-19 Thread Dann Corbit
a blockhead like me can comprehend it easily. -Original Message- From: Josh Berkus [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 19, 2005 5:06 PM To: pgsql-hackers@postgresql.org Cc: Dann Corbit; Stephan Szabo; Terry Fielder; Tino Wildenhain; Marc G. Fournier; [EMAIL PROTECTED]; pgsql

Re: [HACKERS] Spinlocks and CPU Architectures

2005-10-11 Thread Dann Corbit
As an aside, here is a package that has recently been BSD re-licensed: http://sourceforge.net/projects/libltx/ It is a lightweight memory transaction package. It comes with a paper entitled Cache Sensitive Software Transactional Memory by Robert Ennals. In the paper, Robert Ennals suggests

Re: [HACKERS] Need A Suggestion

2005-10-10 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Lane Van Ingen Sent: Monday, October 10, 2005 12:41 PM To: pgsql-hackers@postgresql.org Subject: [HACKERS] Need A Suggestion I am working on the development of a military application

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-10-01 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Tom Lane Sent: Friday, September 30, 2005 11:02 PM To: Jeffrey W. Baker Cc: Luke Lonergan; Josh Berkus; Ron Peacetree; pgsql- [EMAIL PROTECTED]; pgsql-performance@postgresql.org

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-09-30 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of PFC Sent: Thursday, September 29, 2005 9:10 AM To: [EMAIL PROTECTED] Cc: Pg Hackers; pgsql-performance@postgresql.org Subject: Re: [HACKERS] [PERFORM] A Better External Sort?

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-09-30 Thread Dann Corbit
I see the following routines that seem to be related to sorting. If I were to examine these routines to consider ways to improve it, what routines should I key in on? I am guessing that tuplesort.c is the hub of activity for database sorting. Directory of

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-09-30 Thread Dann Corbit
by Dann Corbit and Pete Filandr. ** ([EMAIL PROTECTED] and [EMAIL PROTECTED]) ** Use it however you like. */ // // The insertion sort template is used for small partitions. // template class e_type void insertion_sort(e_type * array, size_t nmemb) { e_type temp, *last

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-09-30 Thread Dann Corbit
Judy definitely rates a WOW!! -Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Gregory Maxwell Sent: Friday, September 30, 2005 7:07 PM To: Ron Peacetree Cc: Jeffrey W. Baker; pgsql-hackers@postgresql.org; pgsql- [EMAIL PROTECTED]

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-09-29 Thread Dann Corbit
If I were to be nosy and poke around in this, what patches of code would I be interested in? -Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Josh Berkus Sent: Thursday, September 29, 2005 11:28 AM To: pgsql-hackers@postgresql.org Cc:

Re: [HACKERS] [PERFORM] Releasing memory during External sorting?

2005-09-26 Thread Dann Corbit
-Original Message- From: Ron Peacetree [mailto:[EMAIL PROTECTED] Sent: Saturday, September 24, 2005 3:31 AM To: Dann Corbit; pgsql-hackers@postgresql.org; pgsql- [EMAIL PROTECTED] Subject: RE: [HACKERS] [PERFORM] Releasing memory during External sorting? From: Dann Corbit [EMAIL

Re: [HACKERS] [PERFORM] A Better External Sort?

2005-09-26 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Ron Peacetree Sent: Monday, September 26, 2005 10:47 AM To: pgsql-hackers@postgresql.org; pgsql-performance@postgresql.org Subject: [HACKERS] [PERFORM] A Better External Sort? From:

Re: [HACKERS] Releasing memory during External sorting?

2005-09-24 Thread Dann Corbit
Generally, when you read from a set of subfiles, the OS will cache the reads to some degree, so the disk-seek jitter is not always that bad. On a highly fragmented disk drive, you might also jump all over the place reading serially from a single subfile. Of course, every situation is

Re: [HACKERS] [PERFORM] Releasing memory during External sorting?

2005-09-23 Thread Dann Corbit
For the subfiles, load the top element of each subfile into a priority queue. Extract the min element and write it to disk. If the next value is the same, then the queue does not need to be adjusted. If the next value in the subfile changes, then adjust it. Then, when the lowest element in the

Re: [HACKERS] [PERFORM] Releasing memory during External sorting?

2005-09-23 Thread Dann Corbit
PROTECTED] On Behalf Of Dann Corbit Sent: Friday, September 23, 2005 2:21 PM To: Ron Peacetree; Mark Lewis; Tom Lane; pgsql-hackers@postgresql.org; pgsql-performance@postgresql.org Subject: Re: [HACKERS] [PERFORM] Releasing memory during External sorting? For the subfiles, load the top element

Re: [HACKERS] inverse OR distributive law?

2005-09-14 Thread Dann Corbit
To find out about boolean logic, take a look here: http://www.laynetworks.com/Boolean%20Algebra.htm Where I work, we took the SIS toolkit from Berkeley and did a simplification of the where clause as if it was a Boolean integrated circuit. Of course, you may get answers that you do not expect if

Re: [HACKERS] Materialized Views in PostgreSQL

2005-09-12 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Tino Wildenhain Sent: Monday, September 12, 2005 3:04 AM To: [EMAIL PROTECTED] Cc: pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Materialized Views in PostgreSQL Jean-Michel

Re: [HACKERS] uuid type for postgres

2005-09-06 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Josh Berkus Sent: Tuesday, September 06, 2005 6:40 PM To: [EMAIL PROTECTED] Cc: Bob Ippolito; [EMAIL PROTECTED]; pgsql-hackers@postgresql.org; nathan wagner Subject: Re: [HACKERS] uuid

Re: [HACKERS] Imprecision of DAYS_PER_MONTH

2005-07-22 Thread Dann Corbit
centuries that are divisible by 4000 thus giving an accuracy of about one day in 20,000 years I think either approach would be fine as long as it is documented exactly that the calculation does. -Original Message- From: Dann Corbit Sent: Friday, July 22, 2005 12:24 PM To: 'Bruce Momjian

Re: [HACKERS] Imprecision of DAYS_PER_MONTH

2005-07-22 Thread Dann Corbit
- From: Bruce Momjian [mailto:[EMAIL PROTECTED] Sent: Friday, July 22, 2005 12:03 PM To: Bruno Wolff III Cc: Dann Corbit; Greg Stark; Tino Wildenhain; Tom Lane; PostgreSQL- development; Marc G. Fournier Subject: Re: [HACKERS] Imprecision of DAYS_PER_MONTH Bruno Wolff III wrote: On Thu

Re: [HACKERS] Imprecision of DAYS_PER_MONTH

2005-07-21 Thread Dann Corbit
In round figures: Since there are 365.2422 days per tropical year, there are 31556926 seconds per year (give or take leap seconds). Ref: http://www.grc.nasa.gov/WWW/K-12/Numbers/Math/Mathematical_Thinking/cale ndar_calculations.htm So 31557600 seems to be off by quite a bit. -Original

Re: [HACKERS] Cost of XLogInsert CRC calculations

2005-05-17 Thread Dann Corbit
I probably shouldn't jump in, because I do not know the nature of the usage of the CRC values. But if the birthday paradox can come into play, with a 32 bit CRC, you will get one false mismatch every 78,643 items or so. http://mathworld.wolfram.com/BirthdayProblem.html Probably you already knew

Re: [HACKERS] Do you have any objections on contributing your improvements of the PostgreSQL core back into the product?

2005-05-13 Thread Dann Corbit
. -Original Message- From: Rada Chirkova [mailto:[EMAIL PROTECTED] Sent: Friday, May 13, 2005 2:55 PM To: Rada Chirkova Cc: Dann Corbit Subject: Re: Do you have any objections on contributing your improvements of the PostgreSQL core back into the product? Dear Dann Corbit, could you tell me

Re: [HACKERS] Do you have any objections on contributing your improvements of the PostgreSQL core back into the product?

2005-05-13 Thread Dann Corbit
to know if the PG group would want this work to be done. I am sure that she expects code reviews and beta tests and all the other standard fare. -Original Message- From: Josh Berkus [mailto:[EMAIL PROTECTED] Sent: Friday, May 13, 2005 4:03 PM To: Dann Corbit Cc: pgsql-hackers

Re: [HACKERS] Priority Mechanisms for OLTP and Transactional Web Applications

2005-05-12 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 09, 2005 5:36 PM To: Dann Corbit Subject: RE: Priority Mechanisms for OLTP and Transactional Web Applications So how should we move forward on this? Do you have an application in mind

Re: [HACKERS] Views, views, views: Summary of Arguments

2005-05-10 Thread Dann Corbit
Suggestion: Use INFORMATION_SCHEMA for everything that INFORMATION_SCHEMA covers. That way, there will not be needless duplications. Create new tables with foreign keys to the INFORMATION_SCHEMA for everything else. Alternative suggestion: Create any sort of magic, pg-specific schema you want,

Re: [HACKERS] Can we get patents?

2005-05-09 Thread Dann Corbit
If the idea originates in PostgreSQL, then nobody else can patent it, because there will be pre-existing art (the PostgreSQL engine) that already demonstrated the idea. A patent must have a novel idea in it. I do not think a good thing can come from creation of software patents. Here is a link

Re: [HACKERS] Do you have any objections on contributing your improvements of the PostgreSQL core back into the product?

2005-05-06 Thread Dann Corbit
benefit PostgreSQL in interesting ways. -Original Message- From: Rada Chirkova [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 7:53 AM To: Dann Corbit; rada Chirkova Subject: Re: Do you have any objections on contributing your improvements of the PostgreSQL core back

Re: [HACKERS] Views, views, views! (long)

2005-05-05 Thread Dann Corbit
Why not tack on the missing functionality to the INFORMATION_SCHEMA views? A couple of new tables and foreign keys should do it, n'est ce pas? -Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Josh Berkus Sent: Wednesday, May 04, 2005

Re: [HACKERS] Views, views, views! (long)

2005-05-05 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Josh Berkus Sent: Thursday, May 05, 2005 10:49 AM To: Andreas Pflug Cc: PostgreSQL-development Subject: Re: [HACKERS] Views, views, views! (long) Andreas, There are only two

Re: [HACKERS] Views, views, views! (long)

2005-05-05 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:pgsql-hackers- [EMAIL PROTECTED] On Behalf Of Andrew - Supernews Sent: Thursday, May 05, 2005 4:55 PM To: pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Views, views, views! (long) On 2005-05-05, Josh Berkus

Re: [HACKERS] Views, views, views! (long)

2005-05-05 Thread Dann Corbit
INFORMATION_SCHEMA is what should be exposed to the end-users of PostgreSQL. Pg_schema (for lack of a better name for internal metadata) can be useful as well for all sorts of special purposes. Probably, INFORMATION_SCHEMA (as designed by the SQL Standards committee) does not need to worry about

Re: [HACKERS] Views, views, views! (long)

2005-05-05 Thread Dann Corbit
-Original Message- From: Josh Berkus [mailto:[EMAIL PROTECTED] Sent: Thursday, May 05, 2005 5:35 PM To: Dann Corbit Cc: elein; PostgreSQL-development; Peter Eisentraut Subject: Re: [HACKERS] Views, views, views! (long) Dann, 1.  There is not a whole lot of stuff that cannot

Re: [HACKERS] Priority Mechanisms for OLTP and Transactional Web Applications

2005-05-04 Thread Dann Corbit
PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 11:40 AM To: Dann Corbit Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Priority Mechanisms for OLTP and Transactional Web Applications In our experimentation, we simply used a user

[HACKERS] FW: Priority Mechanisms for OLTP and Transactional Web Applications

2005-05-04 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 12:44 PM To: Dann Corbit Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Priority Mechanisms for OLTP and Transactional Web Applications Dear

Re: [HACKERS] Priority Mechanisms for OLTP and Transactional Web Applications

2005-05-04 Thread Dann Corbit
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 12:44 PM To: Dann Corbit Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Priority Mechanisms for OLTP and Transactional Web Applications

Re: [pgsql-advocacy] [HACKERS] Increased company involvement

2005-05-02 Thread Dann Corbit
As someone who has made a few minor contributions and plenty of suggestions, but who is not on the core team, I would like to offer my observations. Every suggestion I have ever made that had any merit at all has eventually worked its way into PostgreSQL (most -- perhaps all -- were already under

<    1   2   3   4   5   >