Get Columns from Plan - Mailing list pgsql-hackers

From Ed Behn
Subject Get Columns from Plan
Date
Msg-id CAJBL5DP1tp4R5Et=YBDpP+G9EJvgj+jYG7ijrsF=P==3zANUSg@mail.gmail.com
Whole thread Raw
Responses Re: Get Columns from Plan  (Isaac Morland <isaac.morland@gmail.com>)
Re: Get Columns from Plan  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I'm tinkering with the idea of creating a Procedural Language plugin for Haskell. As such I'm reading up on the SPI and prepared statements. The idea is that a statement will be prepared at compile time and executed at run-time. Therefore, I want to be able to determine the columns (names and types) that are returned by a plan without executing it. It seems like this should be a straight-forward task, but there doesn't seem to be a mechanism to do this. 

Is there a way to get the columns for a plan at compile time? If not, why?
       -Ed 


pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Should contrib modules install .h files?
Next
From: Isaac Morland
Date:
Subject: Re: Get Columns from Plan