From: | Lonnie Cumberland <lonnie_cumberland(at)yahoo(dot)com> |
---|---|
To: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | New Type Internal Length |
Date: | 2001-04-19 18:29:38 |
Message-ID: | 20010419182938.58520.qmail@web12507.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Hello All,
I am writing up a new data type forthe project that I am working on and am
wondering if someone can tell me if the "internallength" represents the size of
my structure in "C"
----------------------------------------------------------------------------
CREATE TYPE complex (
internallength = 16,
input = complex_in,
output = complex_out
);
----------------------------------------------------------------------------
My "C" structure is composed of two fields:
typedef struct test
{
char a[400];
char b[1300];
} test;
the in/out functions are almost the same as the ones in "complex" example.
I currently only have one test function but it only returns type "test" and
does not receive it in the calling parameters;
test *mytest(int4 number, text *something);
Cheers,
Lonnie
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Lonnie Cumberland | 2001-04-19 20:39:04 | Cache lookup error? |
Previous Message | Brett W. McCoy | 2001-04-18 19:11:57 | Re: Perl DBI documentation |