Обсуждение: Setting/Accessing Internal data

Поиск
Список
Период
Сортировка

Setting/Accessing Internal data

От
"Roberto M."
Дата:
If I was to write a c program and wished to set and access an
internal variable as a flag for my program so that I can read it
in or set it?  I have been researching for days now and I have
come across nothing that helps only knowledge that it is
possible.

Thank you
Roberto M.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Re: Setting/Accessing Internal data

От
Joe Conway
Дата:
Roberto M. wrote:
> If I was to write a c program and wished to set and access an
> internal variable as a flag for my program so that I can read it
> in or set it?  I have been researching for days now and I have
> come across nothing that helps only knowledge that it is
> possible.

It isn't clear to me exactly what you are trying to do. Can you give a
more concrete contrived example?

Also, take a look at the directories under contrib/ -- they are full of
good examples of how to write C language user defined functions.

And finally, look at the manual:
http://www.postgresql.org/docs/view.php?version=7.3&idoc=0&file=xfunc-c.html

HTH,

Joe