generic pseudotype IO functions?

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: generic pseudotype IO functions?
Date: 2014-01-06 14:55:46
Message-ID: 20140106145546.GJ28320@alap2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-01-06 14:59:49 Re: dynamic shared memory and locks
Previous Message Tom Lane 2014-01-06 14:54:15 Re: cleanup in code