Re: What happened to the is_<type> family of functions proposal?

Поиск
Список
Период
Сортировка
Искать
От
Greg Stark
Тема
Re: What happened to the is_<type> family of functions proposal?
Дата
Msg-id
AANLkTik8FBMYDU=EcM83SGbaYx7rjds3tXZY5urxVgoO@mail.gmail.com
Ответ на
Список
Дерево обсуждения
What happened to the is_<type> family of functions proposal? "Colin 't Hart" <colinthart@gmail.com>
Re: What happened to the is_<type> family of functions proposal? Andrew Dunstan <andrew@dunslane.net>
Re: What happened to the is_<type> family of functions proposal? "Colin 't Hart" <colinthart@gmail.com>
Re: What happened to the is_<type> family of functions proposal? Robert Haas <robertmhaas@gmail.com>
Re: What happened to the is_<type> family of functions proposal? Tom Lane <tgl@sss.pgh.pa.us>
Re: What happened to the is_<type> family of functions proposal? Robert Haas <robertmhaas@gmail.com>
Re: What happened to the is_<type> family of functions proposal? Alvaro Herrera <alvherre@commandprompt.com>
Re: What happened to the is_<type> family of functions proposal? Tom Lane <tgl@sss.pgh.pa.us>
Re: What happened to the is_<type> family of functions proposal? Alvaro Herrera <alvherre@commandprompt.com>
Re: What happened to the is_<type> family of functions proposal? Tom Lane <tgl@sss.pgh.pa.us>
Re: What happened to the is_<type> family of functions proposal? Greg Stark <gsstark@mit.edu>
Re: What happened to the is_<type> family of functions proposal? Robert Haas <robertmhaas@gmail.com>
Re: What happened to the is_<type> family of functions proposal? Tom Lane <tgl@sss.pgh.pa.us>
Re: What happened to the is_<type> family of functions proposal? Andres Freund <andres@anarazel.de>
Re: What happened to the is_<type> family of functions proposal? Tom Lane <tgl@sss.pgh.pa.us>
Re: What happened to the is_<type> family of functions proposal? Robert Haas <robertmhaas@gmail.com>
Re: What happened to the is_<type> family of functions proposal? Jeff Davis <pgsql@j-davis.com>
Re: What happened to the is_<type> family of functions proposal? Bruce Momjian <bruce@momjian.us>
Re: What happened to the is_<type> family of functions proposal? Tom Lane <tgl@sss.pgh.pa.us>
Re: What happened to the is_<type> family of functions proposal? Robert Haas <robertmhaas@gmail.com>
Re: What happened to the is_<type> family of functions proposal? Gurjeet Singh <singh.gurjeet@gmail.com>
Re: What happened to the is_<type> family of functions proposal? Tom Lane <tgl@sss.pgh.pa.us>
Re: What happened to the is_<type> family of functions proposal? Robert Haas <robertmhaas@gmail.com>
Re: What happened to the is_<type> family of functions proposal? Darren Duncan <darren@darrenduncan.net>
Re: What happened to the is_<type> family of functions proposal? Craig Ringer <craig@postnewspapers.com.au>
Re: What happened to the is_<type> family of functions proposal? Darren Duncan <darren@darrenduncan.net>
On Tue, Sep 21, 2010 at 6:02 PM, Alvaro Herrera
 wrote:
> So we could refactor the input functions so that there's an internal
> function that returns the accepted datum in the OK case and an ErrorData
> for the failure case.  The regular input function would just throw the
> error data in the latter case; but this would allow another function to
> just return whether it worked or not.

You're assuming the input function won't have any work it has to undo
which it would need the savepoint for anyways. For most of the
built-in datatypes -- all of the ones intended for holding real data
-- that's true. But for things like regclass or regtype it might not
be and for user-defined data types.... who knows?

Of course all people really want is to test whether something is a
valid integer, floating point value, etc.

-- 
greg

В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата:
Сообщение: Re: Git conversion status
От: Tom Lane
Дата:
Сообщение: Re: .gitignore files, take two
FAQ