Re: [ask] Return Query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ataherster <ataherster(at)yahoo(dot)co(dot)id>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [ask] Return Query
Date: 2009-03-15 18:44:28
Message-ID: 22893.1237142668@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

ataherster <ataherster(at)yahoo(dot)co(dot)id> writes:
> ... but this function is not work with this error :
> ERROR: structure of query does not match function result type
> CONTEXT: PL/pgSQL function "penjualan" line 6 at RETURN QUERY

This looks like a known limitation in plpgsql: it's not very good with
rowtypes that contain dropped columns. Have you dropped some columns
in table PENJUALAN? If so, try remaking the table from scratch.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Kennedy 2009-03-15 20:25:50 Best-N aggregates
Previous Message Josh Berkus 2009-03-15 18:30:06 Re: Video from the 2009-03-11 SFPUG talk on Unison, by Reese Hart