From: Steven Lembark <lembark@wrkhors.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org
Cc: lembark@wrkhors.com
Subject: Re: Selecting strict, immutable text for a composite type.
Date: Thu, 10 May 2018 23:49:24 -0500
Message-ID: <20180510234924.01bf3685@wrkhors.com> (raw)
In-Reply-To: <13325.1525988328@sss.pgh.pa.us>
References: <20180510103041.472408bb@wrkhors.com>
<20099.1525967568@sss.pgh.pa.us>
<20180510132910.2fec9600@wrkhors.com>
<30030.1525977686@sss.pgh.pa.us>
<20180510161648.4e5ea6a0@wrkhors.com>
<13325.1525988328@sss.pgh.pa.us>
On Thu, 10 May 2018 17:38:48 -0400
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Yeah, but that's not what you did.
>
> I think you could make that work with
>
> exclude using gist (
> lat_lng_text(location) with =,
> effective with &&
> )
>
> but it's not going to apply the function without you telling it to.
Q: Why does it work with enums?
e.g., If I create a type foo_t as enum (...) and install the function
foo_text on foo_t the gist works. Why would the presence of a text
verison of the composite not get used the same way?
If the function works I'm happy, I just don't see the reasoning
behind having the enum's supported automatically and the composite
not handled.
enjoi
--
Steven Lembark 1505 National Ave
Workhorse Computing Rockford, IL 61103
lembark@wrkhors.com +1 888 359 3508
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: lembark@wrkhors.com, tgl@sss.pgh.pa.us
Subject: Re: Selecting strict, immutable text for a composite type.
In-Reply-To: <20180510234924.01bf3685@wrkhors.com>
References: <20180510103041.472408bb@wrkhors.com> <20099.1525967568@sss.pgh.pa.us> <20180510132910.2fec9600@wrkhors.com> <30030.1525977686@sss.pgh.pa.us> <20180510161648.4e5ea6a0@wrkhors.com> <13325.1525988328@sss.pgh.pa.us> <20180510234924.01bf3685@wrkhors.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox