Re: [HACKERS] Parallel Append implementation - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: [HACKERS] Parallel Append implementation
Date
Msg-id CAH2-Wz=m3Y9KE=SmPfQjBjgk_WykuRps1+zjDM+pgdB3iohvAg@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Parallel Append implementation  (Amit Khandekar <amitdkhan.pg@gmail.com>)
List pgsql-hackers
On Fri, Mar 17, 2017 at 10:12 AM, Amit Khandekar <amitdkhan.pg@gmail.com> wrote:
> Yeah, I was in double minds as to whether to do the
> copy-to-array-and-qsort thing, or should just write the same number of
> lines of code to manually do an insertion sort. Actually I was
> searching if we already have a linked list sort, but it seems we don't
> have. Will do the qsort now since it would be faster.

relcache.c does an insertion sort with a list of OIDs. See insert_ordered_oid().


-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] increasing the default WAL segment size
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Microvacuum support for Hash Index