Skip site navigation (1) Skip section navigation (2)

Re: Distinct types

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Simon Riggs <simon(at)2ndQuadrant(dot)com>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Distinct types
Date: 2008-11-28 16:12:08
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Nov 28, 2008, at 5:09 PM, Andrew Dunstan wrote:

>> Speaking of other sorts of derived types: might they include  
>> something just like enums, but sorting on the string values defined  
>> for the enum rather than on the order in which the values were  
>> defined in the enum? I'd use something like that all the timeā€¦
> order by foo_enum::text ...

Ah, I didn't realize that. I guess I'd have to index it on ::text,  
too. And then, to use the index in WHERE clauses, I'd further have to  
compare to ::text, eh?



In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2008-11-28 16:14:43
Subject: Re: Review: Hot standby
Previous:From: Tom LaneDate: 2008-11-28 16:10:27
Subject: Re: Comments to Synchronous replication patch v3

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group