Re: returning CHAR from C function

From: elein <elein(at)sbcglobal(dot)net>
To: Joe Conway <mail(at)joeconway(dot)com>, elein(at)varlena(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: returning CHAR from C function
Date: 2002-12-01 00:32:11
Message-ID: 200212010034.gB10YdAQ432502@pimout4-ext.prodigy.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Joe,

Thank you for your confirmation. It sounds like a bug to
me even with the work around. I'll report it.

elein

On Saturday 30 November 2002 15:56, Joe Conway wrote:
> Joe Conway wrote:
> > instead of type 18 (==char), which is what you need (and intended). I'm
> > not sure what the proper way to define a function returning type char
> > is
>
> As a follow up, this works:
>
> create OR REPLACE function retchar(text)
> returns "char"
> as '$libdir/retchar.so'
> language 'c';
>
> The quotes must prevent the typename from being rewritten to bpchar.
>
> HTH,
>
> Joe
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--
----------------------------------------------------------------------------------------
elein(at)varlena(dot)com Database Consulting www.varlena.com
I have always depended on the [QA] of strangers.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nicolai Tufar 2002-12-01 01:45:46 Hard-coded PUBLIC in pg_dump
Previous Message Christopher Kings-Lynne 2002-12-01 00:27:50 Re: 7.4 Wishlist