Get Columns from Plan

From: Ed Behn <ed(at)behn(dot)us>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Get Columns from Plan
Date: 2018-07-23 01:56:18
Message-ID: CAJBL5DP1tp4R5Et=YBDpP+G9EJvgj+jYG7ijrsF=P==3zANUSg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Isaac Morland 2018-07-23 02:20:08 Re: Get Columns from Plan
Previous Message Stephen Frost 2018-07-23 01:47:22 Re: Should contrib modules install .h files?