Skip site navigation (1) Skip section navigation (2)

Re: cant execute yyparse() within postgresql

From: Sibtay Abbas <sibtay_abbas(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: cant execute yyparse() within postgresql
Date: 2004-12-21 19:25:56
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Datum mylanguage_handler(PG_FUNCTION_ARGS){

if (CALLED_AS_TRIGGER(fcinfo))
	/*do nothing
	char	       *proc_source;
	Datum		prosrcdatum;
	bool		isnull;
	//get the oid of the function
	Oid	funcOid = fcinfo->flinfo->fn_oid;
	HeapTuple procTup =
SearchSysCache(PROCOID,ObjectIdGetDatum(funcOid),0, 0,
//get the attribute that holds the function's source
prosrcdatum = SysCacheGetAttr(PROCOID,
procTup,Anum_pg_proc_prosrc, &isnull);
//convert prosrcdatum to C style string
proc_source =
	if (isnull)
		elog(ERROR, "null prosrc");
	  elog(INFO,"\n Invoking parser \n");

	  /*the problem area*/	
	  elog(INFO,"\n parser invoked \n");
}//end of function

i receive the following error
"server closed the connection unexpectedly
       This probably means the server terminated
abnormally before or while processing the request.
The connection to the server was lost. Attempting
reset: Failed."

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

In response to

pgsql-hackers by date

Next:From: Matthew T. O'ConnorDate: 2004-12-21 19:33:57
Subject: Re: pg_autovacuum w/ dbt2
Previous:From: Tom LaneDate: 2004-12-21 19:23:41
Subject: Re: pg_autovacuum w/ dbt2

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group