Re: [GENERAL] C function fails afeter create extension but ok after reconnect

2013-05-19 Thread Tom Lane
Stephen Woodbridge writes: > I have a C function that works fine in all cases except if I try to run > it after create extension without reconnecting to the database. There's not nearly enough info here to diagnose the problem, but if I had to bet I'd bet on a memory-management bug that just acc

[GENERAL] C function fails afeter create extension but ok after reconnect

2013-05-19 Thread Stephen Woodbridge
Hi all, I have a C function that works fine in all cases except if I try to run it after create extension without reconnecting to the database. So this fails: createdb -U postgres -h localhost ttt psql -U postgres -h localhost ttt create extension postgis; create extension pgrouting; -- creat