Re: C-Type for bit(n) string in user-defined function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Maximilian Link <maximilian-link(at)web(dot)de>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: C-Type for bit(n) string in user-defined function
Date: 2014-01-15 23:59:48
Message-ID: 5562.1389830388@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Maximilian Link <maximilian-link(at)web(dot)de> writes:
> i want to write a user-defined function using a bit(384)-type. Which C
> Type and PG_GETARG_xxx() do i use? i couldn't find anything on
> http://www.postgresql.org/docs/9.1/static/xfunc-c.html .

Look at the built-in functions for the type, which are (mostly at least)
in src/backend/utils/adt/varbit.c.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Sameer Kumar 2014-01-16 05:51:14 Re: archive_cleanup_command when is called?
Previous Message Maximilian Link 2014-01-15 23:30:01 C-Type for bit(n) string in user-defined function