Dne 17.02.10 18:39, Peter Eisentraut napsal(a):
On ons, 2010-02-17 at 11:26 -0500, Tom Lane wrote:
But the behavior gcc appears to exhibit is that it won't warn about
variables that are only assigned once before the PG_TRY is entered,
and that seems reasonable to me since such a variable ought
Zdenek Kotala zdenek.kot...@sun.com writes:
Dne 17.02.10 18:39, Peter Eisentraut napsal(a):
FWIW, this is a Sun Studio build that is complaining here.
Yes It is SS12. I add volatile keyword and problem disappears.
OK, I've applied that change in CVS. Please change codlin_moth back to
the
I revived codlin_month and it falls during PL/Python test:
http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=codlin_mothdt=2010-02-16%2015:09:05
TRAP: BadArgument(!(((context) != 0 (Node*)((context)))-type)
== T_AllocSetContext, File: mcxt.c, Line: 641)
feaf5005 _lwp_kill (1, 6,
Zdenek Kotala zdenek.kot...@sun.com writes:
I revived codlin_month and it falls during PL/Python test:
http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=codlin_mothdt=2010-02-16%2015:09:05
All of the MemoryContextSwitchTo calls in plpython seem to be in
patterns like this:
MemoryContext
On ons, 2010-02-17 at 11:05 -0500, Tom Lane wrote:
All of the MemoryContextSwitchTo calls in plpython seem to be in
patterns like this:
MemoryContext oldcontext;
oldcontext = CurrentMemoryContext;
PG_TRY();
{
... do something ...
}
PG_CATCH();
{
Peter Eisentraut pete...@gmx.net writes:
On ons, 2010-02-17 at 11:05 -0500, Tom Lane wrote:
Since oldcontext is only set in the one place, it really shouldn't
require volatile decoration, but maybe it does.
It is my understanding that local automatic variables may be clobbered
by
On ons, 2010-02-17 at 11:26 -0500, Tom Lane wrote:
But the behavior gcc appears to exhibit is that it won't warn about
variables that are only assigned once before the PG_TRY is entered,
and that seems reasonable to me since such a variable ought to have
the correct value either way.
FWIW,