Re: Mysteriously lost values in nodes

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Mysteriously lost values in nodes
Date: 2005-09-06 18:31:45
Message-ID: 20050906183141.GE24388@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Sep 06, 2005 at 01:51:25PM -0400, Tom Lane wrote:
> Grepping for "makeNode(OpExpr)" might help you. Offhand I'd finger
> eval_const_expressions as the likely culprit. clauses.c has some other
> code you'd better look at too.

Yeah, eval_const_expressions was the culprit in this case, though I
think operators might have some more.

> Personally, when I want to add a field to a node, I grep for every
> reference to one or two of the existing fields to make sure I've found
> all the places I need to touch.

So there's no shortcut, I'll remember that :)

Thanks for the help,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message huaxin zhang 2005-09-06 18:37:52 purge hash table, how to?
Previous Message Tom Lane 2005-09-06 18:00:23 Re: Attention PL authors: want to be listed in template table?