Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: Custom Base...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 9 Topic 15486 of 16941
Post > Topic >>

Re: Custom Base Type in C

by dim@[EMAIL PROTECTED] (Dimitri Fontaine) May 8, 2008 at 02:03 PM

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Le 8 mai 08 =E0 01:06, Toby Chavez a =E9crit :

> My custom type needs to have one biginteger and one text value...=20=20
> pretty straight forward. I guess my first question is if there are=20=20
> any examples out there that do something similar. I have looked=20=20
> extensively through the contrib directory and can't find anything=20=20
> very helpful.

You could have a look at the prefix module, which defines a varlena=20=20
prefix_range datatype,  which is a C struct containing two char and
a=20=20
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
=3DF2OW
-----END PGP SIGNATURE-----

--=20
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 9 Posts in Topic:
Custom Base Type in C
odnamr@[EMAIL PROTECTED]   2008-05-07 17:06:40 
Re: Custom Base Type in C
david.t.wilson@[EMAIL PRO  2008-05-07 19:12:56 
Re: Custom Base Type in C
alvherre@[EMAIL PROTECTED  2008-05-07 19:15:10 
Using a composite SQL type in C
heron@[EMAIL PROTECTED]   2008-05-07 17:29:32 
Re: Custom Base Type in C
odnamr@[EMAIL PROTECTED]   2008-05-07 18:02:29 
Re: Custom Base Type in C
odnamr@[EMAIL PROTECTED]   2008-05-07 18:14:46 
Re: Custom Base Type in C
dim@[EMAIL PROTECTED] (D  2008-05-08 14:03:39 
Re: Using a composite SQL type in C
odnamr@[EMAIL PROTECTED]   2008-05-08 11:11:26 
Re: Using a composite SQL type in C
heron@[EMAIL PROTECTED]   2008-05-08 11:20:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 12:49:03 CDT 2008.