Allow GROUP BY, ORDER BY, DISTINCT targets to be unknown literals,

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a4997254693057d4587d74222881b8e03580da2c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-06-16T02:03:38Z
Releases: 7.4.1
Allow GROUP BY, ORDER BY, DISTINCT targets to be unknown literals,
silently resolving them to type TEXT.  This is comparable to what we
do when faced with UNKNOWN in CASE, UNION, and other contexts.  It gets
rid of this and related annoyances:
	select distinct f1, '' from int4_tbl;
	ERROR:  Unable to identify an ordering operator '<' for type unknown
This was discussed many moons ago, but no one got round to fixing it.

Files