Re: Custom Base Type in C - Mailing list pgsql-general

From Dimitri Fontaine
Subject Re: Custom Base Type in C
Date
Msg-id 80CEC780-884D-406B-9CD7-05E731915E71@hi-media.com
Whole thread Raw
In response to Custom Base Type in C  ("Toby Chavez" <odnamr@gmail.com>)
List 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-----

pgsql-general by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: Import German Decimal Numbers
Next
From: "Ken Allen"
Date:
Subject: Re: Cannot update table with OID with linked server in SQl Server