generic pseudotype IO functions? - Mailing list pgsql-hackers

From Andres Freund
Subject generic pseudotype IO functions?
Date
Msg-id 20140106145546.GJ28320@alap2.anarazel.de
Whole thread Raw
Responses Re: generic pseudotype IO functions?
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: cleanup in code
Next
From: Tom Lane
Date:
Subject: Re: dynamic shared memory and locks