polyphase merge?

From: Don Marvick <donmarvick(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: polyphase merge?
Date: 2009-01-29 08:11:02
Message-ID: d18e24870901290011m11689e6cy21855a0d77972437@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dear All,

I apologize if this has been discussed before. I have tried to search to the
mailing list and could not find an exact answer.

Currently, Postgres uses Knuth's Algorithm 5.4.2D to perform external merge
sort. IMHO the algorithm is designed for tapes.

Why don't the simple text book merge pattern described in Knuth Page 365
(5.4.9) is used for disk based system? The same merge pattern is also
described in Ramakrishnan text book and it is optimal if seek time is not
counted, which of course not the real-world case.

Best regards,

Don

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2009-01-29 09:20:06 Re: Hot standby, recovery infra
Previous Message Simon Riggs 2009-01-29 08:08:47 Re: Hot standby, recovery infra