Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address

Поиск
Список
Период
Сортировка
Искать
От
Robert Haas
Тема
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address
Дата
Msg-id
BANLkTik2GeWfMYGB9OT9kpZ6BqFxr_HNHQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
[v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Kohei KaiGai <kaigai@kaigai.gr.jp>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Robert Haas <robertmhaas@gmail.com>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Kohei KaiGai <kaigai@kaigai.gr.jp>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Kohei KaiGai <kaigai@kaigai.gr.jp>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Robert Haas <robertmhaas@gmail.com>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Tom Lane <tgl@sss.pgh.pa.us>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Robert Haas <robertmhaas@gmail.com>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Noah Misch <noah@leadboat.com>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Robert Haas <robertmhaas@gmail.com>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Alvaro Herrera <alvherre@commandprompt.com>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Robert Haas <robertmhaas@gmail.com>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Kohei KaiGai <kaigai@kaigai.gr.jp>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Robert Haas <robertmhaas@gmail.com>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Noah Misch <noah@leadboat.com>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Robert Haas <robertmhaas@gmail.com>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Kohei KaiGai <kaigai@kaigai.gr.jp>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Robert Haas <robertmhaas@gmail.com>
Re: [v9.2] DROP Reworks Part.0 - 'missing_ok' support of get_object_address Tom Lane <tgl@sss.pgh.pa.us>
On Wed, Jun 22, 2011 at 12:51 PM, Alvaro Herrera
 wrote:
> Excerpts from Robert Haas's message of mié jun 22 08:56:02 -0400 2011:
>
>> Another option might be to leave heap_openrv() and relation_openrv()
>> alone and add a missing_ok argument to try_heap_openrv() and
>> try_relation_openrv().  Passing true would give the same behavior as
>> presently; passing false would make them behave like the non-try
>> version.
>
> That would be pretty weird, having two functions, one of them sometimes
> doing the same thing as the other one.
>
> I understand Noah's concern but I think your original proposal was saner
> than both options presented so far.

I agree with you.  If we had a whole pile of options it might be worth
having heap_openrv() and heap_openrv_extended() so as not to
complicate the simple case, but since there's no forseeable need to
add anything other than missing_ok, my gut is to just add it and call
it good.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

В списке pgsql-hackers по дате отправления
От: Alvaro Herrera
Дата:
От: Heikki Linnakangas
Дата:
FAQ