Re: [GENERAL] GiST indexing question

2010-12-11 Thread Greg Landrum
Dear Yeb, Thanks for the answer. On Sat, Dec 11, 2010 at 3:10 PM, Yeb Havinga wrote: > On 2010-12-11 06:09, Greg Landrum wrote: >> I guess I must be doing something stupid, but neither the docs nor the >> internet have been particularly helpful in letting me know what. > &g

[GENERAL] GiST indexing question

2010-12-10 Thread Greg Landrum
Hi, I'm attempting to expand an existing postgresql extension and I've run into a wall with the way operator classes should be defined for GiST indices. What I have that works is the following two operators: CREATE OPERATOR <@ ( LEFTARG = mol, RIGHTARG = mol, PROCEDURE = r

Re: [GENERAL] Exception Handling in C-Language Functions?

2005-05-23 Thread greg landrum
Tom Lane wrote: "Felix E. Klee" <[EMAIL PROTECTED]> writes: BTW, a more future-proof way of doing what you want: VarChar *text = PG_GETARG_VARCHAR_P(0); int text_len = VARSIZE(text)-VARHDRSZ; char *tmp_text = (char *)malloc(text_len+1); if (tmp_text == NULL) ; /* What now?