Re: Limit usage of tcop/dest.h

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Limit usage of tcop/dest.h
Date: 2005-11-02 15:43:03
Message-ID: 20051102154303.GA29496@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian wrote:
> Tom Lane wrote:
> > Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> writes:
> > > So instead of changing the names of the CommandDest enum, I'm hiding it
> > > from external view.
> >
> > I thought renaming them was a better idea, actually. A whole separate
> > include file to have one forward typedef seems pretty silly. Nor am I
> > convinced that you won't break some people's code by removing the rest
> > of dest.h from spi.h. Finally, for anyone who *does* need to include
> > dest.h, this doesn't address the underlying problem of risk of conflict
> > of names.
>
> Does the change make building PL/PHP easier?

Yes, the point of these changes is to make PL/php much easier. Either
one will do -- renaming the enum elements is what I'm doing now, so we
don't have to change include file.

(Mind you, I still believe that that particular declaration does not
belong in that file, but that's a different discussion.)

(We will still need some hack in order to build PL/php against 8.0, but
that's another problem.)

--
Alvaro Herrera http://www.amazon.com/gp/registry/DXLWNGRJD34J
"Nunca se desea ardientemente lo que solo se desea por razón" (F. Alexandre)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-11-02 15:49:13 Re: Retrieving all possible join trees from PLANNER..
Previous Message Gayathri TK 2005-11-02 15:31:37 Retrieving all possible join trees from PLANNER..

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2005-11-02 16:02:16 Re: Limit usage of tcop/dest.h
Previous Message Bruce Momjian 2005-11-02 15:22:20 Re: Limit usage of tcop/dest.h