Tom,
Here's a draft patch that does ordering using two lists, as I proposed. Please test to see if it's any faster or slower than the original logic.
Great. I'll need to get permission from a client; I can't host large enough/complex enough databases on my own system. :-(
-- Josh Berkus PostgreSQL Experts Inc. www.pgexperts.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers