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

compiling C Funktion for PostgreSQL

From: Jürgen Ulrich <juergen(dot)ulrich(at)etourism-austria(dot)at>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: compiling C Funktion for PostgreSQL
Date: 2007-07-17 07:12:57
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin

I have a problem with the postgreSQL Source Code when I compile the
fuzzystrmatch.c. I want to try to replace all german umlauts for the soundex
algorithm. But when I want to compile the C Code, I get an error on the
following line in the fuzzystrmatch.c:





And here is the error I get:


In function 'Pg_magic_func': 'PG_VERSION_NUM' undeclared (first use in


The PG_VERSION_NUM is defined in the fmgr.h of the PostgreSQL Source Code:


/* Definition of the magic block structure */ 
typedef struct 
    int            len;            /* sizeof(this struct) */ 
    int            version;        /* PostgreSQL major version */ 
    int            funcmaxargs;    /* FUNC_MAX_ARGS */ 
    int            indexmaxkeys;    /* INDEX_MAX_KEYS */ 
    int            namedatalen;    /* NAMEDATALEN */ 
} Pg_magic_struct; 

/* The actual data block contents */ 
    PG_VERSION_NUM / 100,  


Can anyone help me to figure out this problem?


Thanks in advance

Jürgen Ulrich


pgsql-admin by date

Next:From: Peter ElmersDate: 2007-07-17 07:25:51
Subject: Re: Several postgres installation on windows possible?
Previous:From: De Leeuw GuyDate: 2007-07-17 05:59:32
Subject: Re: cache problem (v2)

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