Re: pg_scanner - patch no.1 - Mailing list pgadmin-hackers

From Vladimir Kokovic
Subject Re: pg_scanner - patch no.1
Date
Msg-id CAHsHPqcCQGUs9a8mm_NgsiYBNibXsH-7zw13brn8ox0O2L--OA@mail.gmail.com
Whole thread Raw
In response to Re: pg_scanner - patch no.1  (Ashesh Vashi <ashesh.vashi@enterprisedb.com>)
Responses Re: pg_scanner - patch no.1  (Vladimir Kokovic <vladimir.kokovic@gmail.com>)
List pgadmin-hackers
Hi,

On 11/20/12, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote:
> When compiled with PostgreSQL 9.0.3, I got this error.
> *gcc -c -arch i386 -arch i386 -DSCANNER_VERSION=92 -DPGADMIN_SCANNER
> -I./pg_scanners/pg92 -I./include/utils
> -I./pg_scanners/pg92/src/backend/parser/92 -I./pg_scanners/pg92/src/include
> -Wall -I`/Users/ashesh/Developments/pg//bin/pg_config --includedir`
> -I`/Users/ashesh/Developments/pg//bin/pg_config --includedir-server` -o
> pg_scanners/pg92/keywords.o pg_scanners/pg92/src/backend/parser/keywords.c*
> *In file included from pg_scanners/pg92/src/backend/parser/keywords.c:29:*
> */Users/ashesh/Developments/pg/include/postgresql/server/parser/kwlist.h:97:
> error: ‘CREATEDB’ undeclared here (not in a function)*
> */Users/ashesh/Developments/pg/include/postgresql/server/parser/kwlist.h:98:
> error: ‘CREATEROLE’ undeclared here (not in a function)*
> */Users/ashesh/Developments/pg/include/postgresql/server/parser/kwlist.h:99:
> error: ‘CREATEUSER’ undeclared here (not in a function)*
> */Users/ashesh/Developments/pg/include/postgresql/server/parser/kwlist.h:229:
> error: ‘LOGIN_P’ undeclared here (not in a function)*
> */Users/ashesh/Developments/pg/include/postgresql/server/parser/kwlist.h:245:
> error: ‘NOCREATEDB’ undeclared here (not in a function)*
> */Users/ashesh/Developments/pg/include/postgresql/server/parser/kwlist.h:246:
> error: ‘NOCREATEROLE’ undeclared here (not in a function)*
> */Users/ashesh/Developments/pg/include/postgresql/server/parser/kwlist.h:247:
> error: ‘NOCREATEUSER’ undeclared here (not in a function)*
> */Users/ashesh/Developments/pg/include/postgresql/server/parser/kwlist.h:248:
> error: ‘NOINHERIT’ undeclared here (not in a function)*
> */Users/ashesh/Developments/pg/include/postgresql/server/parser/kwlist.h:249:
> error: ‘NOLOGIN_P’ undeclared here (not in a function)*
> */Users/ashesh/Developments/pg/include/postgresql/server/parser/kwlist.h:251:
> error: ‘NOSUPERUSER’ undeclared here (not in a function)*
> */Users/ashesh/Developments/pg/include/postgresql/server/parser/kwlist.h:356:
> error: ‘SUPERUSER_P’ undeclared here (not in a function)*
> *make[3]: *** [pg_scanners/pg92/keywords.o] Error 1*
> *make[2]: *** [all] Error 2*
> *make[1]: *** [all-recursive] Error 1*
> *make: *** [all] Error 2*
>

This version is tested with PostgreSQL 9.0.3,
Even scanner is from 9.2, now I hope that build and run on any 9.x will succeed.

Best regards
Vladimir Kokovic
Belgrade, Serbia, 20.November 2012

Attachment

pgadmin-hackers by date:

Previous
From: Ashesh Vashi
Date:
Subject: Re: pg_scanner - patch no.1
Next
From: Dave Page
Date:
Subject: pgAdmin III commit: Fix mimetype for SQL files.