Re: pg_scanner - patch no.1

From: Vladimir Kokovic <vladimir(dot)kokovic(at)gmail(dot)com>
To: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: pg_scanner - patch no.1
Date: 2012-11-20 20:01:39
Message-ID: CAHsHPqcCQGUs9a8mm_NgsiYBNibXsH-7zw13brn8ox0O2L--OA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,

On 11/20/12, Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)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 Content-Type Size
changes1.txt text/plain 2.9 KB
pgadmin3-1.diff.tar.gz application/x-gzip 229.0 KB

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2012-11-22 16:45:34 pgAdmin III commit: Fix mimetype for SQL files.
Previous Message Ashesh Vashi 2012-11-20 07:12:09 Re: pg_scanner - patch no.1