Re: Custom Base Type in C

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: Custom Base Type in C
Дата
Msg-id 80CEC780-884D-406B-9CD7-05E731915E71@hi-media.com
обсуждение исходный текст
Ответ на Custom Base Type in C  ("Toby Chavez" <odnamr@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Import German Decimal Numbers
Следующее
От: "Ken Allen"
Дата:
Сообщение: Re: Cannot update table with OID with linked server in SQl Server