Grzegorz Jaśkiewicz wrote: > > char c = PG_GETARG_CHAR(1); > > for whatever reason, taht doesn't return the real char that was passed in. Yeah ... try DatumGetBpCharP instead. PG_GETARG_CHAR is for type "char" with quotes, which is a completely different thing. -- Alvaro Herrera Valdivia, Chile ICBM: S 39º 49' 18.1", W 73º 13' 56.4" "The problem with the facetime model is not just that it's demoralizing, but that the people pretending to work interrupt the ones actually working." (Paul Graham) -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general