Re: Column info without executing query

From: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
To: Dan Strömberg <dan(dot)stromberg(at)stockholm(dot)bonet(dot)se>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Column info without executing query
Date: 2006-07-21 09:12:10
Message-ID: 20060721091210.GB1351@alamut.tdm.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Jul 20 08:21, Dan Strömberg wrote:
> I would like to know if it is possible to find out the datatypes in the
> resultset of a query or a set returning
> function without actually executing them ?

As Tom mentioned, there's support for this feature in the protocol
level, but I don't know any API supports this yet. However, here's a
patch that adds Describe functionality for Prepared Statements and
Cursors to libpq:
http://archives.postgresql.org/pgsql-hackers/2006-06/msg01281.php

Regards.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2006-07-21 09:20:46 Re: Column info without executing query
Previous Message deepak pal 2006-07-21 08:53:29 question for JAVA developer who r using postgres sql as backend