Re: C-Type for bit(n) string in user-defined function - Mailing list pgsql-novice

From Tom Lane
Subject Re: C-Type for bit(n) string in user-defined function
Date
Msg-id 5562.1389830388@sss.pgh.pa.us
Whole thread Raw
In response to C-Type for bit(n) string in user-defined function  (Maximilian Link <maximilian-link@web.de>)
List pgsql-novice
Maximilian Link <maximilian-link@web.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


pgsql-novice by date:

Previous
From: Maximilian Link
Date:
Subject: C-Type for bit(n) string in user-defined function
Next
From: Sameer Kumar
Date:
Subject: Re: archive_cleanup_command when is called?