Search Postgresql Archives

Re: Documentation issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



salah jubeh wrote:
> #include "postgres.h" #include <string.h> #include "fmgr.h"  /* by value */  
> PG_FUNCTION_INFO_V1(add_one);  Datum add_one(PG_FUNCTION_ARGS) {     int32   arg 
> = PG_GETARG_INT32(0); 

Great, this was fixed in Postgres 9.0.  You can see it here:

	http://www.postgresql.org/docs/9.0/static/xfunc-c.html

	#include "postgres.h"
	#include <string.h>
	#include "utils/geo_decls.h"
	
	#ifdef PG_MODULE_MAGIC
	PG_MODULE_MAGIC;
	#endif
	
	/* by value */
	
	int
	add_one(int arg)

---------------------------------------------------------------------------


> 
> .... 
> 
> 
> Best Regard
>  
> Eng. Salah Al Jubeh
> 
> PalestinePolytechnic University
> College of Applied Science
> Computer Science
> P.O. Box 198
> 
> Mobile:++97259369122
> Tel:++97222254680
> 
> 
>  
> 
> 
> 
> 
> ________________________________
> From: Bruce Momjian <bruce@xxxxxxxxxx>
> To: salah jubeh <s_jubeh@xxxxxxxxx>
> Cc: pgsql <pgsql-general@xxxxxxxxxxxxxx>
> Sent: Mon, July 18, 2011 10:58:19 PM
> Subject: Re:  Documentation issue
> 
> salah jubeh wrote:
> > Hello,
> > 
> > In http://www.postgresql.org/docs/8.4/static/xfunc-c.html, there is a missing 
> > include to the utils/geo_decls.h which leads to compilation errors. i.e 
> >#include 
> >
> > "utils/geo_decls.h"
> > needs to be added to the code.
> 
> Uh, which function sample is missing it?
> 
> -- 
>   Bruce Momjian  <bruce@xxxxxxxxxx>        http://momjian.us
>   EnterpriseDB                            http://enterprisedb.com
> 
>   + It's impossible for everything to be true. +
> 
> -- 
> Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

-- 
  Bruce Momjian  <bruce@xxxxxxxxxx>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux