Function name "text_out" should be "textout" - Mailing list pgsql-docs

From Erwin Brandstetter
Subject Function name "text_out" should be "textout"
Date
Msg-id CAGHENJ57wogGOvGXo5LgWYcqswxafLck8ELqHDR+zrkTPgs_OQ@mail.gmail.com
Whole thread Raw
Responses Re: Function name "text_out" should be "textout"  (Michael Paquier <michael@paquier.xyz>)
List pgsql-docs
Close to the bottom of:
(and all previous version)
... the manual says:

> During the ensuing assignment to the local variable curtime, the PL/pgSQL interpreter casts this string to the timestamp type by calling the text_out and timestamp_in functions for the conversion.

Should most probably be "textout" instead of "text_out". See:

test=# SELECT proname FROM pg_proc
WHERE proname IN ('text_out', 'textout');
 proname
---------
 textout
(1 row)

"timestamp_in" seems correct, though. Those function names seem rather inconsistent: roughly half of them have the underscore, the rest doesn't. Might explain the confusion.

SELECT * FROM pg_proc
WHERE  proname ~ 'out$'
AND    prorettype = 'cstring'::regtype
ORDER  BY proname ~ '_out$';

SELECT * FROM pg_proc
WHERE  proname ~ 'in$'
AND    proargtypes = ARRAY['cstring'::regtype]::oidvector
ORDER  BY proname ~ '_in$';

Regards
Erwin

pgsql-docs by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: "Direct download" button is broken on www.postgresql.org/download/linux/redhat/
Next
From: Michael Paquier
Date:
Subject: Re: Function name "text_out" should be "textout"