pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthew Wakeling <matthew@flymine.org>
To: pgsql-performance@postgresql.org
Subject: Re: Very specialised query
Date: Thu, 2 Apr 2009 16:02:26 +0100 (BST)
Message-ID: <alpine.DEB.2.00.0904021600570.21772@aragorn.flymine.org> (raw)
In-Reply-To: <alpine.DEB.2.00.0904011924150.21772@aragorn.flymine.org>
References: <alpine.DEB.2.00.0903261313290.21772@aragorn.flymine.org>
	<331e40660903270936u5db00807sb1169df66443ade3@mail.gmail.com>
	<alpine.DEB.2.00.0903271708080.21772@aragorn.flymine.org>
	<2298.1238179393@sss.pgh.pa.us>
	<alpine.DEB.2.00.0903301618190.21772@aragorn.flymine.org>
	<331e40660903300914x1c7747d0j94be7addeb2b31f5@mail.gmail.com>
	<alpine.DEB.2.00.0903301719230.21772@aragorn.flymine.org>
	<331e40660903301113x7371fb33n302fc3f2c720efb2@mail.gmail.com>
	<alpine.DEB.2.00.0904011811360.21772@aragorn.flymine.org>
	<alpine.DEB.2.00.0904011924150.21772@aragorn.flymine.org>

Trying to rewrite a plpgsql function in C.

How do I do the equivalent of:

FOR loc IN SELECT * FROM location ORDER BY objectid, intermine_start, intermine_end LOOP
END LOOP;

in a C function?

Matthew

-- 
 I wouldn't be so paranoid if you weren't all out to get me!!



view thread (29+ messages)  latest in thread

Message-ID: <alpine.DEB.2.00.0904021600570.21772@aragorn.flymine.org>
Permalink:  ../alpine.DEB.2.00.0904021600570.21772@aragorn.flymine.org/
Also on:    postgresql.org/message-id/alpine.DEB.2.00.0904021600570.21772@aragorn.flymine.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: matthew@flymine.org
  Subject: Re: Very specialised query
  In-Reply-To: <alpine.DEB.2.00.0904021600570.21772@aragorn.flymine.org>
  References: <alpine.DEB.2.00.0903261313290.21772@aragorn.flymine.org> <331e40660903270936u5db00807sb1169df66443ade3@mail.gmail.com> <alpine.DEB.2.00.0903271708080.21772@aragorn.flymine.org> <2298.1238179393@sss.pgh.pa.us> <alpine.DEB.2.00.0903301618190.21772@aragorn.flymine.org> <331e40660903300914x1c7747d0j94be7addeb2b31f5@mail.gmail.com> <alpine.DEB.2.00.0903301719230.21772@aragorn.flymine.org> <331e40660903301113x7371fb33n302fc3f2c720efb2@mail.gmail.com> <alpine.DEB.2.00.0904011811360.21772@aragorn.flymine.org> <alpine.DEB.2.00.0904011924150.21772@aragorn.flymine.org> <alpine.DEB.2.00.0904021600570.21772@aragorn.flymine.org>

* 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