Re: Range Types, constructors, and the type system
От
David E. Wheeler
Тема
Re: Range Types, constructors, and the type system
Дата
Msg-id
B5DE5864-6B43-4CAE-9AEE-9F5A259ED65D@kineticode.com
Ответ на
Re: Range Types, constructors, and the type system (Jeff Davis)
Список
Дерево обсуждения
Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Florian Pflug <fgp@phlo.org>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Florian Pflug <fgp@phlo.org>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Darren Duncan <darren@darrenduncan.net>
Re: Range Types, constructors, and the type system Tom Lane <tgl@sss.pgh.pa.us>
Re: Range Types, constructors, and the type system Darren Duncan <darren@darrenduncan.net>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Darren Duncan <darren@darrenduncan.net>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Darren Duncan <darren@darrenduncan.net>
Re: Range Types, constructors, and the type system Robert Haas <robertmhaas@gmail.com>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Florian Pflug <fgp@phlo.org>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Florian Pflug <fgp@phlo.org>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Florian Pflug <fgp@phlo.org>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Robert Haas <robertmhaas@gmail.com>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Florian Pflug <fgp@phlo.org>
Re: Range Types, constructors, and the type system Robert Haas <robertmhaas@gmail.com>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Robert Haas <robertmhaas@gmail.com>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Robert Haas <robertmhaas@gmail.com>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Robert Haas <robertmhaas@gmail.com>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Tom Lane <tgl@sss.pgh.pa.us>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Merlin Moncure <mmoncure@gmail.com>
Re: Range Types, constructors, and the type system Robert Haas <robertmhaas@gmail.com>
Re: Range Types, constructors, and the type system "David E. Wheeler" <david@kineticode.com>
Re: Range Types, constructors, and the type system Florian Pflug <fgp@phlo.org>
Re: Range Types, constructors, and the type system "David E. Wheeler" <david@kineticode.com>
Re: Range Types, constructors, and the type system Peter Eisentraut <peter_e@gmx.net>
Re: Range Types, constructors, and the type system Florian Pflug <fgp@phlo.org>
Re: Range Types, constructors, and the type system Peter Eisentraut <peter_e@gmx.net>
Re: Range Types, constructors, and the type system Florian Pflug <fgp@phlo.org>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system "David E. Wheeler" <david@kineticode.com>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system "David E. Wheeler" <david@kineticode.com>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Robert Haas <robertmhaas@gmail.com>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Florian Pflug <fgp@phlo.org>
Re: Range Types, constructors, and the type system Robert Haas <robertmhaas@gmail.com>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system "David E. Wheeler" <david@kineticode.com>
Re: Range Types, constructors, and the type system Robert Haas <robertmhaas@gmail.com>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
Re: Range Types, constructors, and the type system Robert Haas <robertmhaas@gmail.com>
Re: Range Types, constructors, and the type system "David E. Wheeler" <david@kineticode.com>
Re: Range Types, constructors, and the type system Jeff Davis <pgsql@j-davis.com>
On Jun 29, 2011, at 8:41 AM, Jeff Davis wrote:
> We could make it a pseudo-type and make the IO functions generate
> exceptions. That should prevent most mistakes and effectively hide it
> from the user (sure, they could probably use it somewhere if they really
> want to, but I wouldn't be worried about breaking backwards
> compatibility with undocumented usage like that). There are plenty of
> types that are hidden from users in one way or another -- trigger, void,
> internal, fdw_handler, etc., so I don't see this as special-casing at
> all.
That could work.
> I don't want to go down the road of making this a fully supported type.
> I don't see any use case for it at all, and I think it's a bad idea to
> design something with no idea how people might want to use it.
+1
I'm still not clear, though, on why the return type of range() should not be related to the types of its arguments. So
range(1, 5)
Should return intrange, and
range(1::int8, 5::int8)
Should return int8range, and
range('foo', 'foooo')
Should return textrange.
Best,
David
В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата: