Skip site navigation (1) Skip section navigation (2)

Re: Inconsistent Errors on Row Comparisons

From: David Fetter <david(at)fetter(dot)org>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>,pgsql-hackers Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Inconsistent Errors on Row Comparisons
Date: 2009-06-30 22:05:18
Message-ID: (view raw or whole thread)
Lists: pgsql-hackers
On Tue, Jun 30, 2009 at 02:01:26PM -0700, David Wheeler wrote:
> On Jun 30, 2009, at 1:40 PM, David Fetter wrote:
>>> Yes, that's my ideal, but Tom says I need to write C code to get that
>>> information from RECORD objects, alas. :-(
>> Would this be the first C piece?  If not, it might be worth doing.
> I don't understand the question.

I was thinking of this as part of PgTAP.

> But yes, I think it'd be worth doing.  I'd like to have functions
> like:
>     pg_record_attrs(RECORD) RETURNS SETOF regtype[]
> And maybe another function to return attribute names. If it could  
> returns both names and types, that'd be cool, but I'm not sure what kind 
> of data type that would be.

It's possible to have it return SETOF RECORD with OUT parameters, I

> Does this sound interesting to other folks?

Sure.  Maybe that should go in pg_catalog in 8.5...

David Fetter <david(at)fetter(dot)org>
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david(dot)fetter(at)gmail(dot)com

Remember to vote!
Consider donating to Postgres:

In response to


pgsql-hackers by date

Next:From: David E. WheelerDate: 2009-06-30 22:16:09
Subject: Re: Inconsistent Errors on Row Comparisons
Previous:From: David E. WheelerDate: 2009-06-30 21:01:26
Subject: Re: Inconsistent Errors on Row Comparisons

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group