Daniel Kelley <dkelley(at)otec(dot)com> writes:
> ... which yields the following error from ecpg:
> postgres.pgc:15: ERROR: invalid datatype 'typedef'
I believe ecpg was just recently fixed to support typedefs. You might
try using the ecpg from a recent snapshot. (AFAIK it should be stable
enough for production use, though I'd not recommend using anything else
from development tip ...)
regards, tom lane