Re: [HACKERS] update_pg_pwd

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: [HACKERS] update_pg_pwd
Дата
Msg-id
Pine.GSO.4.02A.9912131208060.8544-100000@Panter.DoCS.UU.SE
Ответ на
Список
Дерево обсуждения
update_pg_pwd wieck@debis.com (Jan Wieck)
Re: [HACKERS] update_pg_pwd Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] update_pg_pwd wieck@debis.com (Jan Wieck)
Re: [HACKERS] update_pg_pwd Peter Eisentraut <e99re41@DoCS.UU.SE>
Re: [HACKERS] update_pg_pwd wieck@debis.com (Jan Wieck)
Re: [HACKERS] update_pg_pwd Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] update_pg_pwd wieck@debis.com (Jan Wieck)
Re: [HACKERS] update_pg_pwd Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] update_pg_pwd Bruce Momjian <pgman@candle.pha.pa.us>
Re: [HACKERS] update_pg_pwd Peter Eisentraut <peter_e@gmx.net>
Re: [HACKERS] update_pg_pwd Peter Eisentraut <e99re41@DoCS.UU.SE>
Re: [HACKERS] update_pg_pwd Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] update_pg_pwd Tom Lane <tgl@sss.pgh.pa.us>
On Sun, 12 Dec 1999, Tom Lane wrote:

> >     I  wonder  if  it is properly defined. Shouldn't it return at
> >     least a valid type to be callable via SQL?
> 
> opr_sanity is complaining because the declared return type is 0.
> I am not very happy about taking out opr_sanity's check on return types;
> perhaps I should lobby to have Opaque-valued trigger functions be
> declared with an actually valid return-type OID.  What do you think?

Please don't lose me here. Did I do something wrong? Isn't oid 0 used for
opaque return types? What should an opaque function return in C? I don't
see a good reason from a practical point of view to disallow opaque
functions as triggers, for this very reason, achieving none-database side
effects. At least the create trigger command should say something if it
doesn't like it.

If you have to tailor functionality around the regression tests, this is
not the right direction. After all 0 is a valid oid in this context: it's
opaque.

-- 
Peter Eisentraut                  Sernanders vaeg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden


В списке pgsql-hackers по дате отправления
От: Michael Meskes
Дата:
Сообщение: Datatype MONEY
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] update_pg_pwd
FAQ