"Daniel O'Neill" <daniel(at)fatport(dot)com> writes:
> Anyway, here's the vitals, including our layout:
Could I trouble you to provide those table and view definitions as an
SQL script? (pg_dump -s will help you.) I'm too short of time to
manually convert your \d listings into something executable.
regards, tom lane