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

Re: Datum should be defined outside postgres.h

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>,PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Datum should be defined outside postgres.h
Date: 2007-10-27 14:31:27
Message-ID: 20071027143127.GB1686@feivel.credativ.de (view raw or flat)
Thread:
Lists: pgsql-hackers
On Thu, Oct 25, 2007 at 11:31:15AM -0400, Tom Lane wrote:
> > The problem is that ecpg shares parser.c source code and this code 
> > includes postgres.h.
> 
> ecpg cannot do that.  It would fail if parser.c happened to use anything
> that won't compile in frontend, eg elog() or palloc().  It's mere luck
> that it's worked for him so far.

No, actually it's the first step at making ecpg use all the backend
files instead. I would prefer to get away from all those manual syncing.

> Considering that ecpg has its own copy of all of gram.y and scan.l,
> sharing parser.c isn't much of a savings anyway.

For the time being, no, you're right. 

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

In response to

Responses

pgsql-hackers by date

Next:From: Merlin MoncureDate: 2007-10-27 14:44:16
Subject: Re: Proposal: real procedures again (8.4)
Previous:From: Michael MeskesDate: 2007-10-27 14:29:14
Subject: Re: ECPG crash - upgrade from 8.0.3 to 8.1.10

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