pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: justin <justin@emproshunts.com>
To: Matthew Wakeling <matthew@flymine.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: plpgsql arrays
Date: Tue, 07 Apr 2009 11:23:59 -0400
Message-ID: <49DB700F.8020108@emproshunts.com> (raw)
In-Reply-To: <alpine.DEB.2.00.0904071616350.791@aragorn.flymine.org>
References: <alpine.DEB.2.00.0904031420470.21772@aragorn.flymine.org>
	<28757.1238767715@sss.pgh.pa.us>
	<alpine.DEB.2.00.0904071616350.791@aragorn.flymine.org>

Matthew Wakeling wrote:
> What would be the syntax for putting a single row from a cursor into a 
> variable? I have tried:
>
> FETCH INTO left left_cursor;
>
> which says syntax error, and
>
> left = FETCH left_cursor;
>
> which gives the error 'ERROR:  missing datatype declaration at or near 
> "="'
>
> Matthew
>

Have to declare Left variable  as record data type declaration part of 
the function




view thread (32+ messages)  latest in thread

Message-ID: <49DB700F.8020108@emproshunts.com>
Permalink:  ../49DB700F.8020108@emproshunts.com/
Also on:    postgresql.org/message-id/49DB700F.8020108@emproshunts.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: justin@emproshunts.com, matthew@flymine.org, tgl@sss.pgh.pa.us
  Subject: Re: plpgsql arrays
  In-Reply-To: <49DB700F.8020108@emproshunts.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox