Re: [HACKERS] [sqlsmith] Planner crash on foreign table join - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: [HACKERS] [sqlsmith] Planner crash on foreign table join
Date
Msg-id CAEepm=3hVh9XWP7FzrZY7Nb2gjeyvF2qrPBShndkf43T5zo37A@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] [sqlsmith] Planner crash on foreign table join  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Responses Re: [HACKERS] [sqlsmith] Planner crash on foreign table join  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-hackers
On Sun, Apr 9, 2017 at 8:27 AM, Andrew Gierth
<andrew@tao11.riddles.org.uk> wrote:
>     foreach(l, blah)
>     {
>         SomeType *x = (SomeType *) lfirst(l);
>
> (in my code I tend to omit the (SomeType *), which I dislike because it
> adds no real protection)

Just BTW, without that cast it's not compilable as C++, so I'm
guessing that Peter E will finish up putting it back in wherever you
leave it out...

-- 
Thomas Munro
http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [HACKERS] partitioned tables and contrib/sepgsql
Next
From: Andres Freund
Date:
Subject: [HACKERS] "left shift of negative value" warnings