Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Re: Sorting Tup...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 6 Topic 3038 of 3255
Post > Topic >>

Re: Sorting Tuples

by manolo.espa@[EMAIL PROTECTED] (Manolo) Mar 13, 2008 at 02:32 PM

Good job... even if it requires 10GB more of disk space (5GB for the
unpatched and 5GB for the patched result) and multiplying by 3 or 4 the
time needed to scan a 5GB table (twice for producing the sorted result
and once or twice in order to produce the diff).

Till now it's the candidate method: I could run it ad night while I'm
sleeping!

Thank you Ken!


On Thu, 2008-03-13 at 07:32 -0500, Kenneth Marshall wrote:
> Run the same query on an un-patched version and diff the output.
> 
> Ken
> 
> On Thu, Mar 13, 2008 at 12:25:53PM +0100, Manolo wrote:
> > Hi to all.
> > 
> > INTRODUCTION:
> > I created a patch for PostgreSQL even if i'm not a PostgreSQL user. I
> > just wanted to implement an idea for possibly getting better External
> > Sorting module on PostgreSQL just using some basic C programming
> > knowledge and now I'm facing to using PostgreSQL for a while in order
to
> > test my patch.
> > My patch "activates" when user is trying to sort a load of data more
or
> > less twice bigger than his available memory (e.g.: sorting 5GB of data
> > just disposing of 1GB of available memory)
> > 
> > PROBLEM:
> > First of all I want to realise my patch does sorts correctly or not.
But
> > it's a little bit difficult to check when
> > 
> > 	SELECT * FROM huge_table ORDER BY a_column_of_huge_table;
> > 
> > means checking a 4 or 5 GB result...
> > 
> > QUESTION:
> > Is there a way to discover if data is sorted correctly other than
> > spending 2 months taking a look to the 5 GB result tuples, one by one?
> > 
> > Thanks for your attention.
> > Regards, Manolo.
> > 
> > 
> > -- 
> > Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
> > To make changes to your subscription:
> > http://www.postgresql.org/mailpref/pgsql-novice
> > 


-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 6 Posts in Topic:
Sorting Tuples
manolo.espa@[EMAIL PROTEC  2008-03-13 12:25:53 
Re: Sorting Tuples
sdavis2@[EMAIL PROTECTED]  2008-03-13 08:32:36 
Re: Sorting Tuples
manolo.espa@[EMAIL PROTEC  2008-03-13 14:32:12 
Re: Sorting Tuples
manolo.espa@[EMAIL PROTEC  2008-03-13 14:40:01 
Re: Sorting Tuples
manolo.espa@[EMAIL PROTEC  2008-03-13 14:52:36 
Re: Sorting Tuples
jonah.harris@[EMAIL PROTE  2008-03-13 11:11:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 20:23:32 CDT 2008.