Re: Add SPI results constants available for PL/* - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Add SPI results constants available for PL/*
Date
Msg-id CA+TgmoYCpQxwvzy_dkOH081nHcmMcQq==CGvJM50BTsg4snM3g@mail.gmail.com
Whole thread Raw
In response to Re: Add SPI results constants available for PL/*  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: Add SPI results constants available for PL/*  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Tue, Jan 3, 2012 at 9:33 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
>> I'd suppose it interesting to add a table to pg_catalog containing this data.
>
> - it is useless overhead

I tend to agree.

> I am expecting so definition some constants in Perl, Python is simple

Presumably one could instead write a script to transform the list of
constants into a .pm file that could be loaded into the background, or
whatever PL/python's equivalent of that concept is.  Not sure if
there's a better way to do it.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: SEGFAULT on SELECT * FROM view
Next
From: Robert Haas
Date:
Subject: Re: 16-bit page checksums for 9.2