Re: Is "Window" really safe as a global typedef name?

From: David Fetter <david(at)fetter(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Is "Window" really safe as a global typedef name?
Date: 2008-12-20 06:24:21
Message-ID: 20081220062421.GH27437@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Dec 19, 2008 at 10:36:30PM -0500, Tom Lane wrote:
> I'm looking at the window-functions patch and wondering just what
> kind of trouble we'll get into if we leave its new plan node type
> named just "Window". I've already confirmed that this is a direct
> conflict against a typedef in <X11/X.h>, and I'd be not the least
> bit surprised if it's used in even-more-popular system headers on
> Windows or Darwin. Now maybe you could always get away with not
> including such headers together with plannodes.h, but it sure looks
> like problems waiting to happen.
>
> So I'm thinking we'd better rename it, but I'm not coming up with
> anything good; the best I can do after a long day is "EvalWindow",
> and that doesn't seem particularly inspired. Any suggestions?

QueryWindow? ResultSetWindow?

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2008-12-20 07:21:15 Re: Hot standby and b-tree killed items
Previous Message Tom Lane 2008-12-20 04:39:25 Re: [COMMITTERS] pgsql: SQL/MED catalog manipulation facilities This doesn't do any