Re: Generalizing SortSupport for text to work with char(n), bytea, and alternative opclasses

From: Peter Geoghegan <pg(at)heroku(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Generalizing SortSupport for text to work with char(n), bytea, and alternative opclasses
Date: 2015-11-16 19:42:54
Message-ID: CAM3SWZTBJeBnHeCbutfzh4pr46OyrerSmz_x=HGonwbwqa8Jsw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Nov 12, 2015 at 4:38 PM, Peter Geoghegan <pg(at)heroku(dot)com> wrote:
> * bytea default opclass. This is a type that, like the others, shares
> its representation with text (a varlena header and some data bytes --
> a string, essentially). Its comparator already behaves identically to
> that of the text comparator when the "C" collation is used. I've
> actually seen a specific request for this [1].

I probably should have given an explanation for why it's okay that NUL
bytes can exist in strings from the point of view of the generalized
SortSupport for text worker function. The next revision will have
comments along those lines.

--
Peter Geoghegan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bert 2015-11-16 19:51:07 Re: Parallel Seq Scan
Previous Message Thomas Munro 2015-11-16 18:59:00 Re: Proposal: "Causal reads" mode for load balancing reads without stale data