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

spi_query/spi_fetchrow for pl/perl

From: Abhijit Menon-Sen <ams(at)oryx(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Cc: plperlng-devel(at)pgfoundry(dot)org
Subject: spi_query/spi_fetchrow for pl/perl
Date: 2005-06-29 09:47:31
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
The attached patch implements spi_query() and spi_fetchrow() functions
for PL/Perl, to avoid loading the entire result set into memory as the
existing spi_exec_query() function does.

Here's how one might use the new functions:

    $x = spi_query("select ...");
    while (defined ($y = spi_fetchrow($x))) {

The changes do not affect the spi_exec_query() interface in any way.

Comments welcome.

-- ams


pgsql-patches by date

Next:From: Dave PageDate: 2005-06-29 10:17:22
Subject: Re: Dbsize backend integration
Previous:From: Neil ConwayDate: 2005-06-29 08:25:50
Subject: libpq: fix unlikely memory leak

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