From: | "Karl O(dot) Pinc" <kop(at)karlpinc(dot)com> |
---|---|
To: | Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Michael Paquier <michael(at)paquier(dot)xyz> |
Subject: | Re: Patch to document base64 encoding |
Date: | 2019-08-02 14:32:53 |
Message-ID: | 20190802093253.1ac77498@slate.karlpinc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, 30 Jul 2019 23:44:49 +0200 (CEST)
Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> wrote:
> Personnaly, I'd be ok with having a separate "conversion function"
> table, and also with Tom suggestion to have string functions with
> "only simple string" functions, and if any binary appears it is moved
> into the binary section.
I'll make a "conversion function" table and put it in the binary
section.
But I'm not happy with putting any function that works with
bytea into the binary string section. This would mean moving,
say, length() out of the regular string section. There's a
lot of functions that work on both string and bytea inputs
and most (not all, see below) are functions that people
typically associate with string data.
What I think I'd like to do is add a column to the table
in the string section that says whether or not the function
works with both string and bytea. The result would be:
The hash functions (md5(), sha256(), etc.) would move
to the string section, because they work on both strings
and binary data. So the binary function table would
considerably shorten.
There would be a new table for conversions between
bytea and string (both directions). This would
be placed in the binary string section.
So the binary string section would be "just simple bytea", plus
conversion functions. Kind of the opposite of Tom's
suggestion.
Please let me know what you think. Thanks.
Regards,
Karl <kop(at)karlpinc(dot)com>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas Vondra | 2019-08-02 14:43:45 | Re: pglz performance |
Previous Message | Tom Lane | 2019-08-02 14:11:30 | Re: Recent failures in IsolationCheck deadlock-hard |