From: | Dimitri Fontaine <dim(at)hi-media(dot)com> |
---|---|
To: | Toby Chavez <odnamr(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Custom Base Type in C |
Date: | 2008-05-08 12:03:39 |
Message-ID: | 80CEC780-884D-406B-9CD7-05E731915E71@hi-media.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Le 8 mai 08 à 01:06, Toby Chavez a écrit :
> My custom type needs to have one biginteger and one text value...
> pretty straight forward. I guess my first question is if there are
> any examples out there that do something similar. I have looked
> extensively through the contrib directory and can't find anything
> very helpful.
You could have a look at the prefix module, which defines a varlena
prefix_range datatype, which is a C struct containing two char and a
char* elements.
http://pgfoundry.org/projects/prefix
But maybe you just don't need to define the type in C, this I can't say.
- --
dim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkgi7BsACgkQlBXRlnbh1bnqcgCfQhuzXrmRIc/k65w4Jb5mCHs6
OBgAn1h6g5eadNPetCBs59nnh5TGs+2Z
=F2OW
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Ken Allen | 2008-05-08 12:07:50 | Re: Cannot update table with OID with linked server in SQl Server |
Previous Message | Dimitri Fontaine | 2008-05-08 11:59:14 | Re: Import German Decimal Numbers |