generic pseudotype IO functions?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема generic pseudotype IO functions?
Дата
Msg-id 20140106145546.GJ28320@alap2.anarazel.de
обсуждение исходный текст
Ответы Re: generic pseudotype IO functions?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

Does anybody have an opinion about introducing generic pseudotype IO
functions? Pseudotype.c/pg_proc.h are slowly growing a number of pretty
useless/redundant copy&pasted functions... Most for cases that are
pretty damn unlikely to be hit by users not knowing what they do.

What about adding a pseudotype_in/out that just error out with a generic
message?

We could start trying to guess the type they are operating on using
get_fn_expr_rettype/get_fn_expr_argtype but that'd require modifying
several callers not providing that info to work reliably?

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: cleanup in code
Следующее
От: Tom Lane
Дата:
Сообщение: Re: dynamic shared memory and locks